blob: ee28de41349ab11738cea2b25b6071f00a293d49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Generated by debtap
# Maintainer: vcup
# Contributor: vcup
pkgname=peerbanhelper
pkgver=7.2.0
pkgrel=2
pkgdesc="PeerBanHelper is a tool to auto ban peers on the bitorrent network."
arch=('any')
url="https://github.com/PBH-BTN/PeerBanHelper"
license=('GPLv3')
depends=('java-runtime>=21')
backup=('etc/peerbanhelper/config.yml' 'etc/peerbanhelper/profile.yml')
install=${pkgname}.install
source=("https://github.com/PBH-BTN/PeerBanHelper/releases/download/v${pkgver}/peerbanhelper_${pkgver}_all.deb")
sha512sums=('e1b8b45a69e069a0eda4cf2c4d268f005eb0be248931e106013f77e26b73c74619ba3c944bb842b35cd342316afa2299f87f3586ba344b27d429953dfdf1b466')
package() {
# Extract package data
tar -xI unzstd -f data.tar.zst -C "${pkgdir}"
sed 's|/etc/'${pkgname}'|/var/lib/'${pkgname}'|g' -i "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -D -m644 "${pkgdir}/usr/share/doc/peerbanhelper/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|