aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/camlp4/APKBUILD24
1 files changed, 11 insertions, 13 deletions
diff --git a/community/camlp4/APKBUILD b/community/camlp4/APKBUILD
index beac9f559a..f153a86772 100644
--- a/community/camlp4/APKBUILD
+++ b/community/camlp4/APKBUILD
@@ -1,26 +1,25 @@
# Contributor: Jon Ong <jonongjs@rottenmage.com>
# Maintainer: Anil Madhavapeddy <anil@recoil.org>
pkgname=camlp4
+# NOTE: camlp4 version must match ocaml version!
pkgver=4.04
_versuffix='+1'
+_pkgver=$pkgver$_versuffix
pkgrel=1
pkgdesc="Caml preprocessor and pretty-printer"
url="https://github.com/ocaml/camlp4/releases"
-arch="all !x86 !armhf !s390x" #ocaml not avail on excluded platforms
-license="LGPL-2.0"
+arch="all !x86 !armhf !s390x" # ocaml not avail on excluded platforms
+license="LGPL-2.0-or-later-WITH-linking-exception"
depends="ocaml"
makedepends="ocamlbuild"
-options="!makeflags !emptydirs staticlibs"
-install=""
-subpackages=""
-source="${pkgver}-${pkgver}${_versuffix}.tar.gz::https://github.com/ocaml/camlp4/archive/${pkgver}${_versuffix}.tar.gz"
+source="$pkgname-$_pkgver.tar.gz::https://github.com/ocaml/$pkgname/archive/$_pkgver.tar.gz"
+builddir="$srcdir/$pkgname-${_pkgver/+/-}"
-builddir="$srcdir/$pkgname-$pkgver${_versuffix/+/-}"
build() {
cd "$builddir"
- ./configure || return 1
- make -j1 all camlp4/META || return 1
+ ./configure
+ make -j1 all camlp4/META
}
package() {
@@ -29,8 +28,7 @@ package() {
make BINDIR="$pkgdir/usr/bin" \
LIBDIR="$pkgdir/usr/lib/ocaml" \
PKGDIR="$pkgdir/usr/lib/ocaml" \
- install install-META || return 1
+ install install-META
}
-md5sums="305f61ffd98c4c03eb0d9b7749897e59 4.04-4.04+1.tar.gz"
-sha256sums="6044f24a44053684d1260f19387e59359f59b0605cdbf7295e1de42783e48ff1 4.04-4.04+1.tar.gz"
-sha512sums="7db8eebcf3d230f60650ba62d9cb630c069394237e97b678a40b61d3dcaded752a2b7e089a50ff528f1ea0740d0291b722df123a072f2cee489cadc5201c6776 4.04-4.04+1.tar.gz"
+
+sha512sums="7db8eebcf3d230f60650ba62d9cb630c069394237e97b678a40b61d3dcaded752a2b7e089a50ff528f1ea0740d0291b722df123a072f2cee489cadc5201c6776 camlp4-4.04+1.tar.gz"