diff options
Diffstat (limited to 'main/mcpp')
-rw-r--r-- | main/mcpp/APKBUILD | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/main/mcpp/APKBUILD b/main/mcpp/APKBUILD index 007b6a4727..ee4ba10d2d 100644 --- a/main/mcpp/APKBUILD +++ b/main/mcpp/APKBUILD @@ -2,35 +2,27 @@ # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> pkgname=mcpp pkgver=2.7.2 -pkgrel=0 +pkgrel=1 pkgdesc="A portable C preprocessor" url="http://mcpp.sourceforge.net" arch="all" license="custom" +options="!check" # No test suite. depends="" -depends_dev="" makedepends="" -install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz 01-zeroc-fixes.patch 02-gniibe-fixes.patch" -_builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$_builddir" - update_config_sub || return 1 - - local i - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + update_config_sub + default_prepare } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -40,14 +32,13 @@ build() { --infodir=/usr/share/info \ --localstatedir=/var \ --enable-mcpplib \ - --disable-static \ - || return 1 - make || return 1 + --disable-static + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/licenses/$pkgname mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \ |