47 lines
989 B
Bash
47 lines
989 B
Bash
# Maintainer: Shikoba Kage <darkfeather@aninix.net>
|
|
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)"
|
|
pkgrel=1
|
|
pkgrel() {
|
|
git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit
|
|
}
|
|
epoch=
|
|
pkgdesc="$(head -n 1 README)"
|
|
arch=("x86_64")
|
|
url="https://aninix.net/foundation/${pkgname}"
|
|
license=('custom')
|
|
groups=()
|
|
depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13')
|
|
makedepends=('make>=4.2')
|
|
checkdepends=()
|
|
optdepends=()
|
|
provides=('shadowarch')
|
|
conflicts=()
|
|
replaces=('aninix-misc-scripts')
|
|
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"
|
|
}
|