aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-09 01:34:36 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 10:54:40 +0000
commit5c3c17fe5757629c99ce84c4f5d408fcc3d84f70 (patch)
tree05c0d520ed26701e58c3c0c56e3058a4fbf82e32
parent461c366e1804b383fff86dbd67f7cad1a4180543 (diff)
downloadaports-5c3c17fe5757629c99ce84c4f5d408fcc3d84f70.tar.bz2
aports-5c3c17fe5757629c99ce84c4f5d408fcc3d84f70.tar.xz
main/mcpp: modernise, mark as having no test suite
-rw-r--r--main/mcpp/APKBUILD29
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 \