PKGBUILDs/extra/arj/PKGBUILD
2009-10-18 22:17:58 -05:00

48 lines
1.5 KiB
Bash

# Maintainer: Travis Willard <travisw@wmpub.ca>
# Contributor: Gergely Tamas <dice@mfa.kfki.hu>
pkgname=arj
pkgver=3.10.22
pkgrel=5
pkgdesc="Free and portable clone of the ARJ archiver"
url="http://arj.sourceforge.net/"
arch=('arm')
license=('GPL')
depends=('glibc')
makedepends=('autoconf')
options=(!makeflags)
source=(http://downloads.sourceforge.net/sourceforge/arj/$pkgname-$pkgver.tar.gz
001_arches_align.patch
002_no_remove_static_const.patch
003_64_bit_clean.patch
arj-3.10.22-custom-printf.patch)
md5sums=('f263bf3cf6d42a8b7e85b4fb514336d3'
'550bc972d825036f17f202a2b11b35c2'
'395dfa8cc500ffae648777f8f241be88'
'56b3cf96ec485b0d824761457417fcc0'
'4630a7254dfc6c8d8c7e696aa4a58f4a')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Add gentoo patches
patch -Np1 -i "${srcdir}/001_arches_align.patch" || return 1
patch -Np1 -i "${srcdir}/002_no_remove_static_const.patch" || return 1
patch -Np1 -i "${srcdir}/003_64_bit_clean.patch" || return 1
patch -Np1 -i "${srcdir}/arj-3.10.22-custom-printf.patch" || return 1
# Build!
cd gnu
aclocal || return 1
autoconf || return 1
rm -f config.{guess,sub}
_autover=$(automake --version | head -n1 | awk '{ print $4 }')
cp /usr/share/automake-${_autover}/config.{guess,sub} . || return 1
./configure --prefix=/usr || return 1
cd ..
make prepare || return 1
make || return 1
# Install!
make DESTDIR="${pkgdir}" install || return 1
}