diff options
author | Anton | 2019-06-08 15:15:48 +0300 |
---|---|---|
committer | Anton | 2019-06-08 15:15:48 +0300 |
commit | 05ec8df7046d76631fba8f858880674025d6b9db (patch) | |
tree | 53734bab258497acddc8f9940c0987db162ac042 | |
download | aur-05ec8df7046d76631fba8f858880674025d6b9db.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dd777b9f6177 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = camlpdf-git + pkgdesc = PDF-processing-library for OCaml + pkgver = 2.2.1.r47.g1e8e698 + pkgrel = 1 + url = https://github.com/johnwhitington/camlpdf + arch = x86_64 + license = LGPL + makedepends = ocaml-findlib + makedepends = git + makedepends = gcc + depends = glibc + options = !makeflags + options = staticlibs + source = git+https://github.com/johnwhitington/camlpdf.git + sha256sums = SKIP + +pkgname = camlpdf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a2b1d093788f --- /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" +} |