summaryrefslogtreecommitdiff
path: root/community/beye/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/beye/PKGBUILD')
-rw-r--r--community/beye/PKGBUILD32
1 files changed, 10 insertions, 22 deletions
diff --git a/community/beye/PKGBUILD b/community/beye/PKGBUILD
index 9272f8eb6..5d5187d25 100644
--- a/community/beye/PKGBUILD
+++ b/community/beye/PKGBUILD
@@ -1,41 +1,29 @@
-# $Id: PKGBUILD 6531 2009-12-15 08:58:26Z spupykin $
+# $Id: PKGBUILD 58672 2011-11-17 13:41:21Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=beye
pkgver=6.1.0
_lver=610
-pkgrel=1
+pkgrel=2
pkgdesc="Binary viewer"
arch=(i686 x86_64 'mips64el')
license=('GPL')
-depends=(slang gpm)
-replaces=(biew)
+depends=('slang' 'gpm')
+replaces=('biew')
url="http://beye.sourceforge.net/"
options=(zipman)
source=(http://downloads.sourceforge.net/project/beye/biew/$pkgver/biew-${_lver}-src.tar.bz2)
md5sums=('1b6477defaa61b8ca0f2ae1254978e94')
build() {
- cd $startdir/src/biew-${_lver}
-
+ cd $srcdir/biew-${_lver}
CFLAGS="$CFLAGS -mmmx -msse" ./configure --prefix=/usr
+ make
+}
- make || return 1
-
- sed -i "s|PREFIX=/usr|PREFIX=$startdir/pkg/usr|" config.mak
- sed -i "s|DATADIR=/usr/share/biew|DATADIR=$startdir/pkg/usr/share/biew|" config.mak
- sed -i "s|LIBDIR=/usr/lib/biew|LIBDIR=$startdir/pkg/usr/lib/biew|" config.mak
-
- patch makefile <<EOF
-266,267c266,266
-< \$(INSTALL) -D -c -m 644 bin_rc/xlt/* \$(DATADIR)/xlt
-< \$(INSTALL) -D -c -m 644 bin_rc/xlt/russian/* \$(DATADIR)/xlt/russian
----
-> cp -r bin_rc/xlt/* \${DATADIR}/xlt
-EOF
-
- make prefix=$startdir/pkg/usr install || return 1
-
+package() {
+ cd $srcdir/biew-${_lver}
+ make DESTDIR=$pkgdir install
mv $pkgdir/usr/man $pkgdir/usr/share/
}