diff options
author | Antonin Décimo | 2021-01-31 11:41:24 +0100 |
---|---|---|
committer | Antonin Décimo | 2021-01-31 11:41:24 +0100 |
commit | 62cfa7cbb8d90828ecdf8722884bb45ef58df6be (patch) | |
tree | 3acc29a2624365f3e2c559570627cb3e55d63748 | |
parent | 9bc0f3a719fca42b594316e0ce4701dd4f7964ab (diff) | |
download | aur-opam-git.tar.gz |
Use pkgname without git suffix
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 14 insertions, 13 deletions
@@ -1,7 +1,7 @@ pkgbase = opam-git pkgdesc = OCaml package manager - pkgver = 2.1.0.beta2.r165.g1138d481 - pkgrel = 3 + pkgver = 2.1.0.beta4.r13.g6929b39c + pkgrel = 1 url = https://opam.ocaml.org/ arch = i686 arch = x86_64 @@ -17,9 +17,9 @@ pkgbase = opam-git optdepends = git: For downloading packages with git optdepends = mercurial: For downloading packages with mercurial optdepends = rsync: For downloading packages with rsync - provides = opam + provides = _opam-git conflicts = opam - source = opam::git+git://github.com/ocaml/opam.git + source = git://github.com/ocaml/opam.git sha256sums = SKIP pkgname = opam-git @@ -2,9 +2,10 @@ # Contributor: Vincent Bernardoff <vb@luminar.eu.org> # Contributor: Raphaël Proust <raphlalou@gmail.com> -pkgname=opam-git -pkgver=2.1.0.beta2.r165.g1138d481 -pkgrel=3 +_pkgname=opam +pkgname=$_pkgname-git +pkgver=2.1.0.beta4.r13.g6929b39c +pkgrel=1 pkgdesc='OCaml package manager' arch=('i686' 'x86_64' 'armv6h' 'armv7h') url='https://opam.ocaml.org/' @@ -17,18 +18,18 @@ optdepends=( 'mercurial: For downloading packages with mercurial' 'rsync: For downloading packages with rsync' ) -provides=("${pkgname%-git}") -conflicts=("${pkgname%-git}") -source=("${pkgname%-git}"::'git+git://github.com/ocaml/opam.git') +provides=(_$pkgname) +conflicts=($_pkgname) +source=('git://github.com/ocaml/opam.git') sha256sums=('SKIP') pkgver() { - cd "$srcdir/${pkgname%-git}" + cd "$srcdir/$_pkgname" git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "$srcdir/${pkgname%-git}" + cd "$srcdir/$_pkgname" # A clean environment seems mandatory to avoid conflicts with # existing installation of Opam packages. This may cause surprises # if you have a peculiar customization of your OCaml/Opam setup. @@ -37,6 +38,6 @@ build() { } package() { - cd "$srcdir/${pkgname%-git}" + cd "$srcdir/$_pkgname" make DESTDIR="$pkgdir" install } |