diff options
Diffstat (limited to 'main/libguess')
-rw-r--r-- | main/libguess/APKBUILD | 21 | ||||
-rw-r--r-- | main/libguess/libmowgli2.patch | 15 |
2 files changed, 30 insertions, 6 deletions
diff --git a/main/libguess/APKBUILD b/main/libguess/APKBUILD index 29effb2218..ae50e898b2 100644 --- a/main/libguess/APKBUILD +++ b/main/libguess/APKBUILD @@ -8,18 +8,22 @@ url="http://atheme.org/project/libguess" arch="all" license="ISC" depends= -makedepends="libmowgli-dev" +makedepends="libmowgli-dev autoconf" install= subpackages="$pkgname-dev" -source="http://distfiles.atheme.org/$pkgname-$pkgver.tar.gz" +source="http://distfiles.atheme.org/$pkgname-$pkgver.tar.gz + libmowgli2.patch" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" - # workaround bug in busybox - sed -e "/touch/s/0001010000/200001010000/g" \ - -i configure + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + autoconf } build() { @@ -36,4 +40,9 @@ package() { make DESTDIR="$pkgdir" install } -md5sums="efc2d53c30e47ffccae7148e53433396 libguess-1.1.tar.gz" +md5sums="efc2d53c30e47ffccae7148e53433396 libguess-1.1.tar.gz +be38a6404cde9b75945ace91fa740dfe libmowgli2.patch" +sha256sums="e3c9ad3102c9447c591131674135795fb012e073d92e887a2b05c9bbbcbe913f libguess-1.1.tar.gz +27936bd454f28990388ba38cf6d4355a63e2ed5e23f126f4be26924d818e07c0 libmowgli2.patch" +sha512sums="8501931058e6719485c3852c3189807a5eada084c56470bc14623c159a2bc8a2212d562775ed6f4f123d803953d0e1d43170df2158ab669e92089047c74c9a69 libguess-1.1.tar.gz +62754614391d0fce0d4f6ca9fa0624e93a3323f11ecb3ef7818644de0034bfe3661bdfce250ec78abfbdce406496231ba2a79bc474d829d24a6a92c889e1e5d2 libmowgli2.patch" diff --git a/main/libguess/libmowgli2.patch b/main/libguess/libmowgli2.patch new file mode 100644 index 0000000000..2f00dddefc --- /dev/null +++ b/main/libguess/libmowgli2.patch @@ -0,0 +1,15 @@ +--- ./configure.ac.orig 2013-02-28 07:05:33.024962268 +0000 ++++ ./configure.ac 2013-02-28 07:13:27.005783738 +0000 +@@ -40,7 +40,11 @@ + AC_CHECK_FUNCS([printf sprintf snprintf vsnprintf gettimeofday strndup strlcpy strlcat]) + AC_FUNC_STAT + +-PKG_CHECK_MODULES([MOWGLI], [libmowgli >= 0.9.50], [], [AC_MSG_ERROR([Install Mowgli from http://atheme.org/project/mowgli.])]) ++PKG_CHECK_MODULES([MOWGLI], [libmowgli-2], [], ++ [PKG_CHECK_MODULES([MOWGLI], [libmowgli >= 0.9.50], [], ++ [AC_MSG_ERROR([Install Mowgli from http://atheme.org/project/mowgli.]) ++ ]) ++]) + + # Check for optional features. + EXAMPLES_BUILD="" |