2018-02-13 13:22:57 -06:00
|
|
|
# Maintainer: Shikoba Kage <darkfeather@aninix.net>
|
2019-05-17 17:53:31 -05:00
|
|
|
pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//' | tr '[[:upper:]]' '[[:lower:]]')"
|
|
|
|
pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)"
|
2018-02-13 13:22:57 -06:00
|
|
|
pkgrel=1
|
2019-05-17 17:53:31 -05:00
|
|
|
pkgrel() {
|
|
|
|
git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit
|
|
|
|
}
|
2018-02-13 13:22:57 -06:00
|
|
|
epoch=
|
2019-05-17 17:53:31 -05:00
|
|
|
pkgdesc="$(head -n 1 README)"
|
2018-02-13 13:22:57 -06:00
|
|
|
arch=("x86_64")
|
2019-05-17 17:53:31 -05:00
|
|
|
url="https://aninix.net/foundation/${pkgname}"
|
2018-02-13 13:22:57 -06:00
|
|
|
license=('custom')
|
|
|
|
groups=()
|
|
|
|
depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13')
|
|
|
|
makedepends=('make>=4.2')
|
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
2019-05-06 02:04:19 -05:00
|
|
|
provides=('shadowarch')
|
2018-02-13 13:22:57 -06:00
|
|
|
conflicts=()
|
2019-05-06 02:52:38 -05:00
|
|
|
replaces=('aninix-misc-scripts')
|
2018-02-13 13:22:57 -06:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
changelog=
|
|
|
|
source=()
|
|
|
|
noextract=()
|
|
|
|
md5sums=()
|
|
|
|
validpgpkeys=()
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
git pull
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
make -C ..
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
printf 'quit\n\n' | make -C .. test
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
export pkgdir="${pkgdir}"
|
|
|
|
make -C .. install
|
|
|
|
install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|