24 lines
675 B
Plaintext
24 lines
675 B
Plaintext
# 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
|
|
version=0.6-8b3dd3c
|
|
release=1
|
|
source=(https://crux.nu/~jaeger/files/$name-8b3dd3c.tar.xz \
|
|
hefurd)
|
|
|
|
build() {
|
|
cd $name-8b3dd3c
|
|
sed -i -e '45,48d' CMakeLists.txt
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
|
make
|
|
make DESTDIR=$PKG install
|
|
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
|
|
}
|