Updates for GPG signing; PKGBUILD cleanup

This commit is contained in:
DarkFeather
2019-05-20 13:27:29 -05:00
parent bf08781422
commit 19189392bc
4 changed files with 20 additions and 23 deletions

View File

@@ -1,23 +1,22 @@
# Maintainer: Shikoba Kage <darkfeather@aninix.net>
pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//' | tr '[[:upper:]]' '[[:lower:]]')"
depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13')
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() {
git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit
echo $(( `git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit` + 1 ))
}
epoch=
epoch="$(git log | grep -c commit)"
pkgdesc="$(head -n 1 README)"
arch=("x86_64")
url="https://aninix.net/foundation/${pkgname}"
license=('custom')
groups=()
depends=('curl' 'grep' 'bash>=4.4' 'git>=2.13')
makedepends=('make>=4.2')
checkdepends=()
optdepends=()
provides=('shadowarch')
provides=("${pkgname}")
conflicts=()
replaces=('aninix-misc-scripts')
replaces=("${pkgname,,}", "aninix-${pkgname,,}")
backup=()
options=()
install=
@@ -36,7 +35,8 @@ build() {
}
check() {
printf 'quit\n\n' | make -C .. test
chmod -R u+r ../pkg
make -C .. test
}
package() {