summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMCotocel2021-04-13 15:55:54 +0400
committerMCotocel2021-04-13 15:55:54 +0400
commitd278fecbeb14f66eca615d422a88820d1dae4327 (patch)
tree3df02bff5c0053f42313b9010a6d919ead180bab
parent03ad09f45b1f3e224b6384b9079816ef0ff7e9e4 (diff)
downloadaur-d278fecbeb14f66eca615d422a88820d1dae4327.tar.gz
Updated PKGBUILD
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD15
2 files changed, 15 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e20ac8c17c5..9f466ddf276 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
pkgbase = pactest-git
pkgdesc = Test AUR software in a chroot
- pkgver = 0.1
+ pkgver = r1.03ad09f
pkgrel = 1
url = https://github.com/mcotocel/pactest
arch = any
license = MIT
+ makedepends = git
depends = arch-install-scripts
- source = git://github.com/mcotocel/pactest
+ depends = wget
+ source = git+https://github.com/mcotocel/pactest
sha1sums = SKIP
pkgname = pactest-git
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"
}