diff options
author | Marek Kubica | 2013-09-17 10:42:12 +0200 |
---|---|---|
committer | Marek Kubica | 2013-09-17 10:42:12 +0200 |
commit | 3ac3ab262347134c22e57b51a53c8a0280bfd84c (patch) | |
tree | b106c337af1f13e9f3899664cbdaed8d9fc5c4ec | |
parent | 436c089727fbef00860bd6af1e6d369c5870f224 (diff) | |
download | aur-3ac3ab262347134c22e57b51a53c8a0280bfd84c.tar.gz |
Update to new package guidelines
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -13,14 +13,18 @@ sha512sums=('ef4da32f955e69e0b2958b4b2bf12ae94e210d8aa7cee5a9030607b79ac43a88475 options=(!strip !makeflags) build() { - cd "$srcdir/${pkgname/ocaml-/}-$pkgver" + cd "${srcdir}/${pkgname/ocaml-/}-${pkgver}" ./configure --prefix=/usr - mkdir -p $pkgdir$(ocamlfind printconf destdir) || return 1 - mkdir -p $pkgdir/usr/bin - sed -i -e 's|ocamlfind install|ocamlfind install -destdir '$pkgdir$(ocamlfind printconf destdir)'|' Makefile || return 1 - make || return 1 - make DATADIR="$pkgdir/usr/share" BINDIR="$pkgdir/usr/bin" install - install -Dm 644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE + sed -i -e 's|ocamlfind install|ocamlfind install -destdir '${pkgdir}$(ocamlfind printconf destdir)'|' Makefile + make +} + +package() { + cd "${srcdir}/${pkgname/ocaml-/}-${pkgver}" + + mkdir -p "${pkgdir}$(ocamlfind printconf destdir)" + make DATADIR="${pkgdir}/usr/share" install + install -Dm 644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } |