diff options
author | Antonin Décimo | 2020-12-07 18:52:32 +0100 |
---|---|---|
committer | Antonin Décimo | 2020-12-07 18:52:32 +0100 |
commit | 8ba691292cce924018a582ca6a8d737e9685cd6f (patch) | |
tree | 07c1a3fe9a2c5831e5cfeb6a545125dc64c8ca13 /PKGBUILD | |
parent | 288c1f7eb298462bd73c06673994009b73dc396b (diff) | |
download | aur-8ba691292cce924018a582ca6a8d737e9685cd6f.tar.gz |
Remove or add -git suffix accordingly
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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' } |