diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-28 07:26:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-28 07:26:47 +0000 |
commit | 43e788eb8203e90abe6e8f453ccdcfefda498ca5 (patch) | |
tree | ccb63e3a9ed9c7cbe28ab994a7c943054599bee9 | |
parent | f40df7d3ccf9b7b8456f4b78b92588e0b5f8be1f (diff) | |
download | aports-43e788eb8203e90abe6e8f453ccdcfefda498ca5.tar.bz2 aports-43e788eb8203e90abe6e8f453ccdcfefda498ca5.tar.xz |
main/libmcs: build fix for libmowgli2
-rw-r--r-- | main/libmcs/APKBUILD | 18 | ||||
-rw-r--r-- | main/libmcs/libmowgli2.patch | 14 |
2 files changed, 29 insertions, 3 deletions
diff --git a/main/libmcs/APKBUILD b/main/libmcs/APKBUILD index 29dbf69cfd..4d69661314 100644 --- a/main/libmcs/APKBUILD +++ b/main/libmcs/APKBUILD @@ -8,15 +8,22 @@ url="http://atheme.org/project/mcs" arch="all" license="ISC" depends= -makedepends="libmowgli-dev" +makedepends="libmowgli-dev autoconf" install= subpackages="$pkgname-dev" -source="http://distfiles.atheme.org/$pkgname-$pkgver.tgz" +source="http://distfiles.atheme.org/$pkgname-$pkgver.tgz + libmowgli2.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 + autoconf || return 1 # workaround bug in busybox sed -e "/touch/s/0001010000/200001010000/g" \ -i configure @@ -36,4 +43,9 @@ package() { make DESTDIR="$pkgdir" install } -md5sums="c47fc81f3efacaa0a5a0b8fd14f9d48e libmcs-0.7.2.tgz" +md5sums="c47fc81f3efacaa0a5a0b8fd14f9d48e libmcs-0.7.2.tgz +2ed26ea0cbba425f2bf324a675a8cb84 libmowgli2.patch" +sha256sums="989f8dc4598ffab2f6a5648ba40f12d2e2c392b7ec6e66eeef194591565e60d9 libmcs-0.7.2.tgz +6692f7ff46f9cf0aad82731e73af3d7bc9dcf3dd74d7feb05646439b482ed47c libmowgli2.patch" +sha512sums="798420299d7aa756a949ebfb21ae13effe146d222f1c09233ff64736c4f24c5aa132520d3486ab9460cd38632f67e47e619148acfffa74d82638a5b3cbf0c0d6 libmcs-0.7.2.tgz +b491d82cc10082091a8d5177c3cc17bcfd5cc6edcb334c48e5a4af2bc02ec709d4025dc4f68d06397b1a91d82da88acc4bcf852d98fc1f979d61fce37fe9939f libmowgli2.patch" diff --git a/main/libmcs/libmowgli2.patch b/main/libmcs/libmowgli2.patch new file mode 100644 index 0000000000..8b46eb681e --- /dev/null +++ b/main/libmcs/libmowgli2.patch @@ -0,0 +1,14 @@ +--- ./configure.ac.orig 2013-02-28 07:22:41.577340017 +0000 ++++ ./configure.ac 2013-02-28 07:24:44.075085706 +0000 +@@ -40,7 +40,10 @@ + AC_CHECK_FUNCS([memset setlocale strcasecmp strchr strdup strerror strtol strtod]) + AC_FUNC_STAT + +-PKG_CHECK_MODULES([MOWGLI], [libmowgli >= 0.4.0], [], [AC_MSG_ERROR([libmowgli 0.4.0 or newer required])]) ++PKG_CHECK_MODULES([MOWGLI], [libmowgli-2], [], ++ [PKG_CHECK_MODULES([MOWGLI], [libmowgli >= 0.4.0], [], ++ [AC_MSG_ERROR([libmowgli 0.4.0 or newer required])]) ++ ]) + + dnl gconf + dnl ===== |