summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2020-10-03 22:23:53 +0200
committerhaawda2020-10-03 22:23:53 +0200
commit00fa3410b5c34c177640c4cdb485aae326f37b8e (patch)
treea78e207a83e924d894a2afbd1e4a39b3d2187dca
parent05ec8df7046d76631fba8f858880674025d6b9db (diff)
downloadaur-00fa3410b5c34c177640c4cdb485aae326f37b8e.tar.gz
Update
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD24
2 files changed, 13 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dd777b9f617..1b583b9d3fa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = camlpdf-git
pkgdesc = PDF-processing-library for OCaml
- pkgver = 2.2.1.r47.g1e8e698
+ pkgver = 2.3.1.r21.g7557db5
pkgrel = 1
url = https://github.com/johnwhitington/camlpdf
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index a2b1d093788..ee013d20206 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
-# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
+# Contributor: Anton Kudelin <kudelin at protonmail dot com>
# Contributor: oliver < a t > first . in-berlin . de
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
-_pkgname=camlpdf
-pkgname=$_pkgname-git
-pkgver=2.2.1.r47.g1e8e698
+pkgname=camlpdf-git
+pkgver=2.3.1.r21.g7557db5
pkgrel=1
pkgdesc="PDF-processing-library for OCaml"
arch=('x86_64')
@@ -16,20 +16,20 @@ options=(!makeflags staticlibs)
sha256sums=('SKIP')
pkgver() {
- cd $_pkgname
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c 2-
+ cd ${pkgname%-git}
+ git describe --tags | sed 's/-/.r/' | tr - .| cut -c2-
}
build() {
- cd $srcdir/$_pkgname
- OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
+ cd ${pkgname%-git}
+ OCAMLFIND_DESTDIR="$pkgdir"/$(ocamlfind printconf destdir)
make OCAMLFIND_DESTDIR="$OCAMLFIND_DESTDIR"
}
package() {
- cd ${srcdir}/$_pkgname
- OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
- mkdir -p $OCAMLFIND_DESTDIR
- OCAMLFIND_LDCONF="$pkgdir/$(ocamlfind printconf ldconf)"
+ cd ${pkgname%-git}
+ OCAMLFIND_DESTDIR="$pkgdir"/$(ocamlfind printconf destdir)
+ install -d $OCAMLFIND_DESTDIR
+ OCAMLFIND_LDCONF="$pkgdir"/$(ocamlfind printconf ldconf)
make install -d OCAMLFIND_DESTDIR="$OCAMLFIND_DESTDIR" OCAMLFIND_LDCONF="$OCAMLFIND_LDCONF"
}