2018-04-17 17:26:22 -05:00
|
|
|
# Description: Standalone C++ BitTorrent tracker
|
|
|
|
# URL: https://github.com/abique/hefur
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
# Depends on: protobuf cmake gnutls git
|
|
|
|
|
|
|
|
name=hefur
|
2020-11-08 12:06:07 -06:00
|
|
|
version=1.0
|
2018-04-17 17:26:22 -05:00
|
|
|
release=1
|
2020-11-08 12:06:07 -06:00
|
|
|
source=(https://crux.nu/~jaeger/files/$name-$version.tar.xz \
|
2018-04-17 17:26:22 -05:00
|
|
|
hefurd)
|
|
|
|
|
|
|
|
build() {
|
2020-11-08 12:06:07 -06:00
|
|
|
cd $name-$version
|
2018-04-17 17:26:22 -05:00
|
|
|
sed -i -e '45,48d' CMakeLists.txt
|
2020-11-08 12:06:07 -06:00
|
|
|
sed -i -e '124,126d' hefur/CMakeLists.txt
|
2020-11-08 10:11:31 -06:00
|
|
|
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2018-04-17 17:26:22 -05:00
|
|
|
install -d -m 0755 -o root -g root $PKG/var/run/hefur $PKG/usr/share/hefur/torrents
|
|
|
|
install -D -m 0644 -o root -g root /dev/null $PKG/var/log/hefurd.log
|
|
|
|
install -D -m 0755 -o root -g root $SRC/hefurd $PKG/etc/rc.d/hefurd
|
2020-11-08 12:06:07 -06:00
|
|
|
rm -r $PKG/usr/share/doc
|
2018-04-17 17:26:22 -05:00
|
|
|
}
|