summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAntonin Décimo2020-12-07 18:52:32 +0100
committerAntonin Décimo2020-12-07 18:52:32 +0100
commit8ba691292cce924018a582ca6a8d737e9685cd6f (patch)
tree07c1a3fe9a2c5831e5cfeb6a545125dc64c8ca13 /PKGBUILD
parent288c1f7eb298462bd73c06673994009b73dc396b (diff)
downloadaur-8ba691292cce924018a582ca6a8d737e9685cd6f.tar.gz
Remove or add -git suffix accordingly
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1429f638c064..bd9644da6216 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=opam-git
pkgver=2.1.0.beta2.r165.g1138d481
-pkgrel=1
+pkgrel=2
pkgdesc='OCaml package manager'
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='https://opam.ocaml.org/'
@@ -19,11 +19,11 @@ optdepends=(
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
-source=("$pkgname"::'git+git://github.com/ocaml/opam.git')
+source=("${pkgname%-git}"::'git+git://github.com/ocaml/opam.git')
sha256sums=('SKIP')
pkgver() {
- cd "$pkgname"
+ cd "$srcdir/${pkgname%-git}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}