summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMCotocel2021-04-13 15:55:54 +0400
committerMCotocel2021-04-13 15:55:54 +0400
commitd278fecbeb14f66eca615d422a88820d1dae4327 (patch)
tree3df02bff5c0053f42313b9010a6d919ead180bab /PKGBUILD
parent03ad09f45b1f3e224b6384b9079816ef0ff7e9e4 (diff)
downloadaur-d278fecbeb14f66eca615d422a88820d1dae4327.tar.gz
Updated PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 22fbbd2e341..af0642e013a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,21 @@
pkgname=pactest-git
-pkgver=0.1
+pkgver=r1.03ad09f
pkgdesc="Test AUR software in a chroot"
-pkgrel="1"
+pkgrel=1
arch=("any")
url="https://github.com/mcotocel/pactest"
license=('MIT')
-depends=('arch-install-scripts')
-source=("git://github.com/mcotocel/pactest")
+depends=('arch-install-scripts' 'wget')
+makedepends=('git')
+source=("git+https://github.com/mcotocel/pactest")
sha1sums=('SKIP')
+pkgver() {
+ cd "${srcdir}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
package() {
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" "${srcdir}/pactest/LICENSE"
install -D -t "${pkgdir}/usr/bin" "${srcdir}/pactest/pactest"
}