CryptoWorkbench/PKGBUILD

47 lines
995 B
Bash
Raw Permalink Normal View History

depends=('mono>=5.0.0' 'curl' 'grep' 'bash>=4.4')
makedepends=('make>=4.2' 'Uniglot')
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)"
2017-07-06 12:10:56 -05:00
pkgrel=1
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.md)"
2017-07-06 12:10:56 -05:00
arch=("x86_64")
url="$(git config remote.origin.url | sed 's/.git$//')"
2017-07-06 12:10:56 -05:00
license=('custom')
groups=()
provides=("${pkgname}")
2017-07-06 12:10:56 -05:00
conflicts=()
replaces=("${pkgname,,}", "aninix-${pkgname,,}")
2017-07-06 12:10:56 -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
2017-07-06 12:10:56 -05:00
}
package() {
export pkgdir="${pkgdir}"
make -C .. install
install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}