diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-10-13 14:26:42 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-10-13 14:26:42 +0000 |
commit | d97ed5b957c8b67c87242065369a232be6c5ca40 (patch) | |
tree | 19306782078b7be1d873a9ad7661a5bc969c15ce /main/findutils | |
parent | 7d89a3221cb2775bf176eb29fe57e20b3c76a0cc (diff) | |
download | aports-d97ed5b957c8b67c87242065369a232be6c5ca40.tar.bz2 aports-d97ed5b957c8b67c87242065369a232be6c5ca40.tar.xz |
main/findutils: fix musl build
Diffstat (limited to 'main/findutils')
-rw-r--r-- | main/findutils/APKBUILD | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/main/findutils/APKBUILD b/main/findutils/APKBUILD index 353d2bf044..ee2ed725fa 100644 --- a/main/findutils/APKBUILD +++ b/main/findutils/APKBUILD @@ -11,14 +11,22 @@ depends="" makedepends="" install= subpackages="$pkgname-doc" -source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz" +source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz + fix-gnulib-freadahead.patch + " _builddir="$srcdir"/findutils-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done } + build() { cd "$_builddir" @@ -37,6 +45,14 @@ build() { package() { cd "$_builddir" make DESTDIR="$pkgdir" install + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null + return 0 } -md5sums="351cc4adb07d54877fa15f75fb77d39f findutils-4.4.2.tar.gz" +md5sums="351cc4adb07d54877fa15f75fb77d39f findutils-4.4.2.tar.gz +151400410daf15fa87944a9d51460918 fix-gnulib-freadahead.patch" +sha256sums="434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a findutils-4.4.2.tar.gz +1ed50d784a1c1a8603f47449e8fc3c95bd39ff827a8ec8fed0ecd07330fe8844 fix-gnulib-freadahead.patch" +sha512sums="262d0a8301158e6541b9f24e4e043d8d8c1b196b18dbe59c3bedcf17b50c95708e33ab23a07e3bfb947ad495faafffdca3c296fb525794ca60f2dfd682f228c1 findutils-4.4.2.tar.gz +8ed8a28ff35a30a8e07af17ca5dea1c3ad12d81bccb6dffe6727a6dd4d47943c401e26433e793ee0ea249a1a1fdd67ea8a8573f6914c636dbfb56dd5dce6884e fix-gnulib-freadahead.patch" |