add a reference PKGBUILD
This commit is contained in:
parent
747b4fbcf8
commit
bc0b1ae13c
1 changed files with 30 additions and 0 deletions
30
PKGBUILD
Normal file
30
PKGBUILD
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Maintainer: Decadic
|
||||
|
||||
pkgname=safe-harbor-git
|
||||
pkgver=r1.000000
|
||||
pkgrel=1
|
||||
pkgdesc=""
|
||||
arch=("any")
|
||||
url="https://git.aggregate.cz/decadic/safe-harbor"
|
||||
license=("GPL-3")
|
||||
depends=("python")
|
||||
source=("$pkgname::git+https://git.aggregate.cz/decadic/safe-harbor.git")
|
||||
sha256sums=("SKIP")
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname
|
||||
|
||||
# prepare dirs
|
||||
install -dm755 "$pkgdir/usr/bin"
|
||||
install -dm755 "$pkgdir/usr/lib/systemd/system"
|
||||
install -dm755 "$pkgdir/etc/$pkgname"
|
||||
|
||||
cp bin/$pkgname.py "$pkgdir/usr/bin"
|
||||
cp systemd/$pkgname@.service "$pkgdir/usr/lib/systemd/system"
|
||||
cp config.json.example "$pkgdir/etc/$pkgname"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue