summaryrefslogtreecommitdiff
path: root/community/anyfs-tools/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/anyfs-tools/PKGBUILD')
-rw-r--r--community/anyfs-tools/PKGBUILD16
1 files changed, 13 insertions, 3 deletions
diff --git a/community/anyfs-tools/PKGBUILD b/community/anyfs-tools/PKGBUILD
index b96198172..9cfb60279 100644
--- a/community/anyfs-tools/PKGBUILD
+++ b/community/anyfs-tools/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 66269 2012-02-23 06:54:24Z spupykin $
+# $Id: PKGBUILD 91828 2013-05-28 17:03:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=anyfs-tools
pkgver=0.85.1c
-pkgrel=3
+pkgrel=4
pkgdesc="unix-way toolset for recovering and converting filesystems"
arch=('i686' 'x86_64' 'mips64el')
url="http://anyfs-tools.sourceforge.net/"
@@ -17,6 +17,11 @@ source=(http://downloads.sourceforge.net/sourceforge/anyfs-tools/${pkgname}-${pk
md5sums=('d3da0004cd0f037ec3e926acd3f520c2'
'5ea91297b605d51b03243adda1efed27')
+prepare() {
+ cd $srcdir/$pkgname-${pkgver}
+ find . -name Makefile.in -exec sed -i 's|$(INSTALLPATH)/sbin|$(INSTALLPATH)/bin|g' {} \;
+}
+
build() {
cd $srcdir/$pkgname-${pkgver}
@@ -25,8 +30,13 @@ build() {
patch -p1 <$srcdir/disable-build-ext2fs.patch
#Dirty Arch64 fix which doesn't affect i686
- CFLAGS="-DNO_INLINE_FUNCS -D_INLINE_=static" ./configure --prefix=/usr --build=i686-linux-gnu
+ CFLAGS="-DNO_INLINE_FUNCS -D_INLINE_=static" \
+ ./configure --prefix=/usr --build=i686-linux-gnu
make -j1
sed -i 's|ldconfig||' src/anysurrect/Makefile
+}
+
+package() {
+ cd $srcdir/$pkgname-${pkgver}
make INSTALLPATH=$pkgdir/usr install
}