2021-01-16 19:37:29 -06:00
|
|
|
pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//')"
|
2019-05-10 16:21:14 -05:00
|
|
|
pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)"
|
2018-11-05 15:35:32 -06:00
|
|
|
pkgrel=1
|
2019-05-10 16:21:14 -05:00
|
|
|
pkgrel() {
|
|
|
|
git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit
|
|
|
|
}
|
2018-11-05 15:35:32 -06:00
|
|
|
epoch=
|
2019-05-10 16:21:14 -05:00
|
|
|
pkgdesc="$(head -n 1 README)"
|
2018-11-05 15:35:32 -06:00
|
|
|
arch=("x86_64")
|
2019-05-10 16:21:14 -05:00
|
|
|
url="https://aninix.net/foundation/${pkgname}"
|
2018-11-05 15:35:32 -06:00
|
|
|
license=('custom')
|
|
|
|
groups=()
|
2022-05-17 23:52:04 -05:00
|
|
|
depends=('bash>=4.4' 'php' 'perl' 'jdk-openjdk>=18.0.1.1.u2-1' 'jre-openjdk-headless>=18.0.1.1.u2-1' 'python>=3.7')
|
2021-01-16 19:37:29 -06:00
|
|
|
makedepends=('make>=4.2' 'mono>5.0.0' 'gcc' 'python-pytest')
|
2018-11-05 15:35:32 -06:00
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
2019-05-10 16:21:14 -05:00
|
|
|
provides=("${pkgname}")
|
2018-11-05 15:35:32 -06:00
|
|
|
conflicts=()
|
2019-05-10 16:21:14 -05:00
|
|
|
replaces=()
|
2018-11-05 15:35:32 -06:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
changelog=
|
|
|
|
source=()
|
|
|
|
noextract=()
|
|
|
|
md5sums=()
|
|
|
|
validpgpkeys=()
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
git pull
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-05-10 16:21:14 -05:00
|
|
|
make -C ..
|
2018-11-05 15:35:32 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-05-10 16:21:14 -05:00
|
|
|
chmod -R u+r ../pkg
|
|
|
|
make -C .. test
|
2018-11-05 15:35:32 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
export pkgdir="${pkgdir}"
|
|
|
|
make -C .. install
|
|
|
|
install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|