summaryrefslogtreecommitdiff
path: root/hefur/Pkgfile
blob: ef87e0be965e1f0a09f62ecca5426a989e9b9b6f (plain)
    1 # Description: Standalone C++ BitTorrent tracker
    2 # URL: https://github.com/abique/hefur
    3 # Maintainer: Matt Housh, jaeger at crux dot ninja
    4 # Depends on: protobuf cmake gnutls git
    5 
    6 name=hefur
    7 version=0.6-8b3dd3c
    8 release=1
    9 source=(https://crux.nu/~jaeger/files/$name-8b3dd3c.tar.xz \
   10 	hefurd)
   11 
   12 build() {
   13 	cd $name-8b3dd3c
   14 	sed -i -e '45,48d' CMakeLists.txt
   15 	mkdir build
   16 	cd build
   17 	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
   18 	make
   19 	make DESTDIR=$PKG install
   20 	install -d -m 0755 -o root -g root $PKG/var/run/hefur $PKG/usr/share/hefur/torrents
   21 	install -D -m 0644 -o root -g root /dev/null $PKG/var/log/hefurd.log
   22 	install -D -m 0755 -o root -g root $SRC/hefurd $PKG/etc/rc.d/hefurd
   23 }

Generated by cgit