diff options
author | wenLiangcan | 2015-06-10 15:16:18 +0800 |
---|---|---|
committer | wenLiangcan | 2015-06-10 15:16:18 +0800 |
commit | 57388de24c1905a7ec37ec741de4cf8c8f6c044c (patch) | |
tree | 2396e1629dfe7e9adafd3c2aba56b1847165338e | |
download | aur-57388de24c1905a7ec37ec741de4cf8c8f6c044c.tar.gz |
ocaml-zed 1.3-1.
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c14f6484321f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ocaml-zed + pkgdesc = An abstract engine for text editing + pkgver = 1.3 + pkgrel = 1 + url = https://github.com/diml/zed + arch = i686 + arch = x86_64 + license = BSD + makedepends = ocaml-findlib + depends = ocaml + depends = ocaml-camomile + depends = ocaml-react + options = !strip + source = https://github.com/diml/zed/archive/1.3.tar.gz + md5sums = 59f1d4b08f4b156f21d2378d34fc5b7d + +pkgname = ocaml-zed + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fe2e2b39de30 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: wenLiangcan <boxeed at gmail dot com> +# Contributor: Taylor Venable <taylor@metasyntax.net> + +srcname='zed' +pkgname="ocaml-${srcname}" +pkgver='1.3' +pkgrel=1 +pkgdesc='An abstract engine for text editing' +arch=('i686' 'x86_64') +url='https://github.com/diml/zed' +license=('BSD') +depends=('ocaml' 'ocaml-camomile' 'ocaml-react') +makedepends=('ocaml-findlib') +source=("https://github.com/diml/zed/archive/${pkgver}.tar.gz") +options=('!strip') +md5sums=('59f1d4b08f4b156f21d2378d34fc5b7d') + +build() { + cd "$srcdir/${srcname}-${pkgver}" + ./configure + + env DESTDIR="$pkgdir" \ + OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ + make +} + + +package() { + mkdir -p "$pkgdir/$(ocamlfind printconf destdir)" + mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs" + cd "$srcdir/${srcname}-${pkgver}" + env DESTDIR="$pkgdir" \ + OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ + make install + install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |