summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormalet2018-07-26 18:22:00 +0200
committermalet2018-07-26 18:22:00 +0200
commit912d962eac5d5bcb60a23a2097ea65c974f72159 (patch)
treef5a7744836203324643d73f2352f476fa4d85ad9
downloadaur-912d962eac5d5bcb60a23a2097ea65c974f72159.tar.gz
Adding PKGBUILD for visitors generated from https://gitlab.com/malet/opam2aur
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD24
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..489b86e9138
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ocaml-visitors
+ pkgdesc = An OCaml syntax extension for generating visitor classes.
+ pkgver = 20180513
+ pkgrel = 1
+ url = https://gitlab.inria.fr/fpottier/visitors
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ options = !strip
+ options = !makeflags
+ options = staticlibs
+ source = http://gallium.inria.fr/~fpottier/visitors/visitors-20180513.tar.gz
+ md5sums = 0f90d565d045c2df3769239ac1d39b76
+
+pkgname = ocaml-visitors
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9903bfa86d6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: malet <malet@invalid>
+pkgname=ocaml-visitors
+_oname=visitors
+pkgver=20180513
+pkgrel=1
+pkgdesc='An OCaml syntax extension for generating visitor classes.'
+arch=('i686' 'x86_64')
+url='https://gitlab.inria.fr/fpottier/visitors'
+license=('LGPL')
+options=('!strip' '!makeflags' 'staticlibs')
+source=('http://gallium.inria.fr/~fpottier/visitors/visitors-20180513.tar.gz')
+md5sums=('0f90d565d045c2df3769239ac1d39b76')
+
+build() {
+ cd "$srcdir/$_oname-$pkgver"
+ make -C src
+}
+
+package() {
+ cd "$srcdir/$_oname-$pkgver"
+ export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
+ install -dm 755 "$OCAMLFIND_DESTDIR"
+ make -C src install
+}