47 lines
921 B
Bash
47 lines
921 B
Bash
|
depends=('bash>=4.4' 'openldap')
|
||
|
makedepends=('make>=4.2')
|
||
|
checkdepends=()
|
||
|
optdepends=()
|
||
|
pkgname="Password-Scripts"
|
||
|
pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)"
|
||
|
pkgrel=1
|
||
|
pkgrel() {
|
||
|
echo $(( `git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit` + 1 ))
|
||
|
}
|
||
|
epoch="$(git log | grep -c commit)"
|
||
|
pkgdesc="AniNIX/Password Scripts"
|
||
|
arch=("x86_64")
|
||
|
url="$(git config remote.origin.url | sed 's/.git$//')"
|
||
|
license=('custom')
|
||
|
groups=()
|
||
|
provides=("${pkgname}")
|
||
|
conflicts=()
|
||
|
replaces=("${pkgname,,}" "aninix-${pkgname,,}")
|
||
|
backup=()
|
||
|
options=()
|
||
|
install=
|
||
|
changelog=
|
||
|
source=()
|
||
|
noextract=()
|
||
|
md5sums=()
|
||
|
validpgpkeys=()
|
||
|
|
||
|
prepare() {
|
||
|
git pull || true
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
make -C ..
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
chmod -R u+r ../pkg
|
||
|
make -C .. test
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
export pkgdir="${pkgdir}"
|
||
|
make -C .. install
|
||
|
install -D -m644 ../../../../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||
|
}
|