aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-01 23:20:54 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-02 01:53:18 +0200
commitc5b25c196a63d01f8cd408b9cef01a29e667ab29 (patch)
treeda2367c03f5b88cb972649abd9119267221b1dbc /testing
parent0b658c9d3ebd0c711f616c353cabe50a1486fbab (diff)
downloadaports-c5b25c196a63d01f8cd408b9cef01a29e667ab29.tar.bz2
aports-c5b25c196a63d01f8cd408b9cef01a29e667ab29.tar.xz
testing/php7-mailparse: cleanup and improve abuild
Diffstat (limited to 'testing')
-rw-r--r--testing/php7-mailparse/APKBUILD40
1 files changed, 21 insertions, 19 deletions
diff --git a/testing/php7-mailparse/APKBUILD b/testing/php7-mailparse/APKBUILD
index 6cda1a587f..455ff64b12 100644
--- a/testing/php7-mailparse/APKBUILD
+++ b/testing/php7-mailparse/APKBUILD
@@ -3,33 +3,35 @@
pkgname=php7-mailparse
_pkgreal=mailparse
pkgver=3.0.2
-pkgrel=0
-pkgdesc="Mailparse is an extension for parsing and working with email messages."
-url="http://pecl.php.net/package/$_pkgreal"
+pkgrel=1
+_phpver=${pkgname#php}
+_phpver=${_phpver%%-*}
+pkgdesc="PHP$_phpver extension for parsing and working with email messages"
+url="http://pecl.php.net/package/mailparse"
arch="all"
license="PHP"
-depends="php7-mbstring"
-makedepends="php7-dev autoconf"
-install=""
-subpackages=""
-source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
-
-builddir="$srcdir"/$_pkgreal-$pkgver
+depends="php$_phpver-common php$_phpver-mbstring"
+makedepends="php$_phpver-dev autoconf"
+source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+options="!check" # tests fail b/c of not loaded mbstring module
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"
- phpize7 || return 1
- ./configure --prefix=/usr --with-php-config=php-config7 || return 1
- make || return 1
+
+ phpize$_phpver
+ ./configure --prefix=/usr --with-php-config=php-config$_phpver
+ make
}
package() {
+ local confdir="$pkgdir/etc/php$_phpver/conf.d"
cd "$builddir"
- make INSTALL_ROOT="$pkgdir"/ install || return 1
- install -d "$pkgdir"/etc/php7/conf.d || return 1
- echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/60_$_pkgreal.ini
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ mkdir -p "$confdir"
+ echo "extension=$_pkgreal.so" > "$confdir"/60_$_pkgreal.ini
}
-md5sums="4bd96a980013374f23a7461cc0a919aa mailparse-3.0.2.tgz"
-sha256sums="d81a6f8a48e43fca1c0f0d6c90d666830c24d584a23a60add43062aaf221843b mailparse-3.0.2.tgz"
-sha512sums="be04e15cf3577542447186d7ead4e31159c171c99de0a255d4ee2f6f760b80ecb44be056bd9089180601f622b9a71f4331f194e1adaa702d1d964009682896f6 mailparse-3.0.2.tgz"
+sha512sums="be04e15cf3577542447186d7ead4e31159c171c99de0a255d4ee2f6f760b80ecb44be056bd9089180601f622b9a71f4331f194e1adaa702d1d964009682896f6 php7-mailparse-3.0.2.tgz"