summaryrefslogtreecommitdiff
path: root/hefur/Pkgfile
blob: 3a42f5ce8f0e5679174a42ba83f52550305ab6b8 (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=1.0
    8 release=1
    9 source=(https://crux.nu/~jaeger/files/$name-$version.tar.xz \
   10 	hefurd)
   11 
   12 build() {
   13 	cd $name-$version
   14 	sed -i -e '45,48d' CMakeLists.txt
   15 	sed -i -e '124,126d' hefur/CMakeLists.txt
   16 	cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr \
   17 		-DCMAKE_BUILD_TYPE=Release \
   18 		-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
   19 		-Wno-dev
   20 	cmake --build build
   21 	DESTDIR=$PKG cmake --install build
   22 	install -d -m 0755 -o root -g root $PKG/var/run/hefur $PKG/usr/share/hefur/torrents
   23 	install -D -m 0644 -o root -g root /dev/null $PKG/var/log/hefurd.log
   24 	install -D -m 0755 -o root -g root $SRC/hefurd $PKG/etc/rc.d/hefurd
   25 	rm -r $PKG/usr/share/doc
   26 }

Generated by cgit