2019-08-04 08:28:03 +00:00
|
|
|
# Maintainer: haskal <haskal@bepis.xyz>
|
|
|
|
|
|
|
|
pkgname=piratebox
|
|
|
|
pkgver=1.1.4_mod_haskal
|
2019-08-05 05:19:58 +00:00
|
|
|
pkgrel=2
|
2019-08-04 08:28:03 +00:00
|
|
|
pkgdesc="PirateBox - Share Freely"
|
|
|
|
arch=('any')
|
|
|
|
license=('GPL3')
|
|
|
|
depends=('python-aiohttp' 'python-aiofiles')
|
|
|
|
source=(
|
|
|
|
pb-haskal-1.1.4.tar.xz
|
|
|
|
)
|
|
|
|
sha256sums=(
|
|
|
|
SKIP
|
|
|
|
)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
python setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
|
|
|
|
for file in $(find "$srcdir" -iname '*.html' -o -iname '*.js' -o -iname '*.css' -o -iname favicon.ico -o -iname '*.png' -o -iname '*.properties' -o -iname '*.ini'); do
|
|
|
|
install -Dm644 $file "$pkgdir/opt/piratebox/${file#"$srcdir"}"
|
|
|
|
done
|
|
|
|
install -Dm644 "$srcdir/systemd/users.conf" "$pkgdir/usr/lib/sysusers.d/piratebox.conf"
|
|
|
|
install -Dm644 "$srcdir/systemd/piratebox.service" "$pkgdir/usr/lib/systemd/system/piratebox.service"
|
|
|
|
}
|