Shifting tracking of package metadata mostly to git; cleaning depends; efficiency update in testing

This commit is contained in:
DarkFeather
2019-05-10 16:21:14 -05:00
parent 7376f12a27
commit 216021b633
5 changed files with 25 additions and 25 deletions

View File

@@ -1,23 +1,22 @@
# Maintainer: Shikoba Kage <darkfeather@aninix.net>
pkgname=helloworld
pkgver=0.1.4310ab732341ac3317c9aa706b3058b8e7162486
pkgver() {
printf "0.1.""$(git rev-parse HEAD)"
}
pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//' | tr '[[:upper:]]' '[[:lower:]]')"
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
}
epoch=
pkgdesc="AniNIX::HelloWorld \\\\ Sample HelloWorld Source"
pkgdesc="$(head -n 1 README)"
arch=("x86_64")
url="https://aninix.net/foundation/HelloWorld"
url="https://aninix.net/foundation/${pkgname}"
license=('custom')
groups=()
depends=('bash>=4.4')
makedepends=('make>=4.2' 'mono>5.0.0' 'php' 'perl' 'java-environment' 'python>=3.7' 'gcc')
depends=('bash>=4.4' 'php' 'perl' 'java-environment' 'python>=3.7')
makedepends=('make>=4.2' 'mono>5.0.0' 'gcc')
checkdepends=()
optdepends=()
provides=('helloworld')
provides=("${pkgname}")
conflicts=()
replaces=('aninix-helloworld')
replaces=()
backup=()
options=()
install=
@@ -32,13 +31,12 @@ prepare() {
}
build() {
git config remote.origin.url
make -C ..
}
check() {
cd "${srcdir}/.."
chmod a+r "${srcdir}/../pkg"
make test
chmod -R u+r ../pkg
make -C .. test
}
package() {