diff options
author | J5lx | 2016-02-07 04:30:41 +0100 |
---|---|---|
committer | J5lx | 2016-02-07 04:30:41 +0100 |
commit | 307bfa1b8e2529429d11451515b1b662a2f58cad (patch) | |
tree | a78667a9f4df67295ae61ef8889f726a2d68da50 /PKGBUILD | |
download | aur-307bfa1b8e2529429d11451515b1b662a2f58cad.tar.gz |
2014.08.08-1: Initial upload
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a6d02da2e05a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> + +pkgname=ocaml-libocaml_ipv4_address +pkgver=2014.08.08 +pkgrel=1 +license=('GPL3') +arch=('i686' 'x86_64') +pkgdesc="OCaml library for IPv4 address" +url="http://git.grenouille.com/?p=libocaml_ipv4_address.git" +depends=('ocaml' 'ocaml-libocaml_lexing' 'ocaml-libocaml_option') +makedepends=('git' 'ocaml-findlib') +source=("git://git.autogeree.net/~julm/libocaml_ipv4_address.git#tag=v${pkgver//./-}" + "git://git.autogeree.net/~julm/libocaml_make.git#tag=v2014-08-08" + "git://git.autogeree.net/~julm/tool/pkg.git#tag=v2014-08-07") +options=('!strip') +md5sums=('SKIP' + 'SKIP' + 'SKIP') + +prepare() { + cd "${srcdir}/${pkgname#ocaml-}" + + git submodule init + git config submodule.lib/libocaml/make.url "${srcdir}/libocaml_make" + git config submodule.lib/tool/pkg.url "${srcdir}/pkg" + git submodule update +} + +build() { + cd "${srcdir}/${pkgname#ocaml-}" + + make OCAML_FLAGS= +} + +package() { + cd "${srcdir}/${pkgname#ocaml-}" + + export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlc -where)" + install -dm755 "${OCAMLFIND_DESTDIR}" + make install DESTDIR="${OCAMLFIND_DESTDIR}" +} |