ShadowArch/PKGBUILD

47 lines
1.0 KiB
Bash
Raw Normal View History

2022-11-20 20:47:27 -06:00
depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13' 'elinks' 'openssh' 'tmux' 'gnupg' 'procps-ng')
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)"
pkgrel=1
pkgrel() {
echo $(( `git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit` + 1 ))
}
epoch="$(git log | grep -c commit)"
2021-11-12 13:42:07 -06:00
pkgdesc="$(head -n 1 README.md)"
arch=("x86_64")
url="$(git config remote.origin.url | sed 's/.git$//')"
license=('custom')
groups=()
provides=("${pkgname}")
conflicts=()
2022-01-18 10:49:51 -06:00
replaces=("${pkgname,,}" "aninix-${pkgname,,}")
backup=()
options=()
2022-11-20 20:47:27 -06:00
install=$pkgname.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"
}