aboutsummaryrefslogtreecommitdiffstats
path: root/main/mg
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-19 20:36:19 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-19 20:36:19 +0000
commitace4dee1da98c83f774f737297f74dc4fea56d8e (patch)
tree15b0cb70708960805d6677694a338974d98f6084 /main/mg
parent1d42c05157d154c65e8a86609583170125fd1a3d (diff)
downloadaports-ace4dee1da98c83f774f737297f74dc4fea56d8e.tar.bz2
aports-ace4dee1da98c83f774f737297f74dc4fea56d8e.tar.xz
main/mg: fix musl build
Diffstat (limited to 'main/mg')
-rw-r--r--main/mg/APKBUILD18
1 files changed, 15 insertions, 3 deletions
diff --git a/main/mg/APKBUILD b/main/mg/APKBUILD
index 26a7199741..e6c83714e7 100644
--- a/main/mg/APKBUILD
+++ b/main/mg/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mg
pkgver=20110905
-pkgrel=0
+pkgrel=1
pkgdesc="mg is Micro GNU/emacs, this is a portable version of the mg maintained by the OpenBSD team."
url="http://homepage.boetes.org/software/mg"
arch="all"
@@ -11,12 +11,19 @@ depends=
makedepends="ncurses-dev"
install=
subpackages="$pkgname-doc"
-source="http://homepage.boetes.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
+source="http://homepage.boetes.org/software/$pkgname/$pkgname-$pkgver.tar.gz
+ musl-fixes.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
sed -i -e '/^CFLAGS/s/-Werror//' Makefile.in
}
@@ -33,4 +40,9 @@ package() {
install -Dm644 tutorial "$pkgdir"/usr/share/doc/$pkgname/tutorial
}
-md5sums="2de35316fa8ebafe6003efaae70b723e mg-20110905.tar.gz"
+md5sums="2de35316fa8ebafe6003efaae70b723e mg-20110905.tar.gz
+00e7d303d5a4f163be92adc1e8a26a26 musl-fixes.patch"
+sha256sums="1cd37d7e6a3eecc890a5718c38b8f38495057ba93856762a756ccee2f9618229 mg-20110905.tar.gz
+22b330621dcbc587bae376433f77598e6fed2768f8ab31134d832a7b430d59be musl-fixes.patch"
+sha512sums="b490a5a3526d35839353e138f33ac924c5afbbf7e5c9faa20ceccb82e1dc1e6a3f0726b32bac7d43dcf8a410b1b8525067da5557cf669c52a9e32d1d2f45a8a4 mg-20110905.tar.gz
+56cbefd1806f5194765f12ee3901d111518706551201add819912c3539cab86cda1d4b3a8b74331da3840a35d2576384da80eafe6c9b8271d04b25ea730a5605 musl-fixes.patch"