2020-06-15 17:14:56 -05:00
|
|
|
depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13' 'elinks')
|
2019-05-20 13:27:29 -05:00
|
|
|
makedepends=('make>=4.2')
|
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
|
|
|
pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//')"
|
2019-05-17 17:53:31 -05:00
|
|
|
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() {
|
2019-05-20 13:27:29 -05:00
|
|
|
echo $(( `git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit` + 1 ))
|
2019-05-17 17:53:31 -05:00
|
|
|
}
|
2019-05-20 13:27:29 -05:00
|
|
|
epoch="$(git log | grep -c commit)"
|
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=()
|
2019-05-20 13:27:29 -05:00
|
|
|
provides=("${pkgname}")
|
2018-02-13 13:22:57 -06:00
|
|
|
conflicts=()
|
2019-05-20 13:27:29 -05:00
|
|
|
replaces=("${pkgname,,}", "aninix-${pkgname,,}")
|
2018-02-13 13:22:57 -06:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
changelog=
|
|
|
|
source=()
|
|
|
|
noextract=()
|
|
|
|
md5sums=()
|
|
|
|
validpgpkeys=()
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
git pull
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
make -C ..
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-05-20 13:27:29 -05:00
|
|
|
chmod -R u+r ../pkg
|
|
|
|
make -C .. test
|
2018-02-13 13:22:57 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
export pkgdir="${pkgdir}"
|
|
|
|
make -C .. install
|
|
|
|
install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|