summaryrefslogtreecommitdiffstats
path: root/testcorpus/git-sourced/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testcorpus/git-sourced/PKGBUILD')
-rw-r--r--testcorpus/git-sourced/PKGBUILD19
1 files changed, 19 insertions, 0 deletions
diff --git a/testcorpus/git-sourced/PKGBUILD b/testcorpus/git-sourced/PKGBUILD
new file mode 100644
index 0000000..ba9ae33
--- /dev/null
+++ b/testcorpus/git-sourced/PKGBUILD
@@ -0,0 +1,19 @@
+pkgbase=git-sourced
+pkgver=r1.0
+pkgrel=1
+pkgdesc="synthetic fixture"
+url="https://example.invalid/git-sourced"
+license=(MIT)
+arch=(x86_64)
+source=("git+file://@UPSTREAM_DIR@")
+sha256sums=("SKIP")
+build() {
+ echo building git-sourced
+}
+package_git-sourced() {
+ echo packaging git-sourced
+}
+pkgver() {
+ cd "$srcdir/upstream" 2>/dev/null || cd @UPSTREAM_DIR@
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}