2020-10-08 16:33:19 -05:00
|
|
|
pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//')"
|
|
|
|
pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)"
|
|
|
|
pkgrel=1
|
|
|
|
pkgrel() {
|
2023-10-20 19:08:32 -05:00
|
|
|
git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit
|
2020-10-08 16:33:19 -05:00
|
|
|
}
|
2023-10-20 19:08:32 -05:00
|
|
|
epoch=
|
2020-10-08 16:33:19 -05:00
|
|
|
pkgdesc="$(head -n 1 README.md)"
|
|
|
|
arch=("x86_64")
|
2023-10-20 19:08:32 -05:00
|
|
|
url="https://aninix.net/foundation/${pkgname}"
|
2020-10-08 16:33:19 -05:00
|
|
|
license=('custom')
|
|
|
|
groups=()
|
2023-10-20 19:08:32 -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')
|
|
|
|
makedepends=('make>=4.2' 'mono>5.0.0' 'gcc' 'python-pytest')
|
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
2020-10-08 16:33:19 -05:00
|
|
|
provides=("${pkgname}")
|
|
|
|
conflicts=()
|
2023-10-20 19:08:32 -05:00
|
|
|
replaces=("${pkgname,,}","aninix-${pkgname,,}")
|
2020-10-08 16:33:19 -05:00
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
changelog=
|
|
|
|
source=()
|
|
|
|
noextract=()
|
|
|
|
md5sums=()
|
|
|
|
validpgpkeys=()
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
git pull
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|