2019-07-25 13:01:53 -05:00
|
|
|
depends=('bash>=4.4' 'git' 'pacman')
|
|
|
|
makedepends=('make>=4.2')
|
|
|
|
checkdepends=()
|
|
|
|
optdepends=()
|
|
|
|
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)"
|
2019-02-18 07:56:39 -06:00
|
|
|
pkgrel=1
|
2019-07-25 13:01:53 -05:00
|
|
|
pkgrel() {
|
|
|
|
echo $(( `git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit` + 1 ))
|
|
|
|
}
|
|
|
|
epoch="$(git log | grep -c commit)"
|
|
|
|
pkgdesc="$(head -n 1 README)"
|
2019-02-18 07:56:39 -06:00
|
|
|
arch=("x86_64")
|
2019-07-25 13:01:53 -05:00
|
|
|
url="https://aninix.net/foundation/${pkgname}"
|
2019-02-18 07:56:39 -06:00
|
|
|
license=('custom')
|
|
|
|
groups=()
|
2019-07-25 13:01:53 -05:00
|
|
|
provides=("${pkgname}")
|
2019-02-18 07:56:39 -06:00
|
|
|
conflicts=()
|
2019-07-25 13:01:53 -05:00
|
|
|
replaces=("${pkgname,,}", "aninix-${pkgname,,}")
|
2023-02-22 21:49:59 -06:00
|
|
|
backup=(usr/local/etc/Maat/aur.list)
|
2019-02-18 07:56:39 -06:00
|
|
|
options=()
|
2023-02-22 21:41:40 -06:00
|
|
|
install=installscript
|
2019-02-18 07:56:39 -06:00
|
|
|
changelog=
|
|
|
|
source=()
|
|
|
|
noextract=()
|
|
|
|
md5sums=()
|
|
|
|
validpgpkeys=()
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
git pull
|
2023-02-22 17:56:30 -06:00
|
|
|
make -C .. test && make -C .. clean
|
2019-02-18 07:56:39 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
make -C ..
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
export pkgdir="${pkgdir}"
|
|
|
|
make -C .. install
|
|
|
|
install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|