summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnton2019-06-08 15:15:48 +0300
committerAnton2019-06-08 15:15:48 +0300
commit05ec8df7046d76631fba8f858880674025d6b9db (patch)
tree53734bab258497acddc8f9940c0987db162ac042 /PKGBUILD
downloadaur-05ec8df7046d76631fba8f858880674025d6b9db.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a2b1d093788
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
+# Contributor: oliver < a t > first . in-berlin . de
+
+_pkgname=camlpdf
+pkgname=$_pkgname-git
+pkgver=2.2.1.r47.g1e8e698
+pkgrel=1
+pkgdesc="PDF-processing-library for OCaml"
+arch=('x86_64')
+license=('LGPL')
+url="https://github.com/johnwhitington/camlpdf"
+source=("git+$url.git")
+depends=('glibc')
+makedepends=('ocaml-findlib' 'git' 'gcc')
+options=(!makeflags staticlibs)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c 2-
+}
+
+build() {
+ cd $srcdir/$_pkgname
+ 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)"
+ make install -d OCAMLFIND_DESTDIR="$OCAMLFIND_DESTDIR" OCAMLFIND_LDCONF="$OCAMLFIND_LDCONF"
+}