PKGBUILDs/extra/libxmu/PKGBUILD
2009-09-26 09:35:50 -05:00

30 lines
888 B
Bash

# $Id: PKGBUILD 19485 2008-11-24 13:35:41Z hugo $
# Maintainer: Alexander Baldeck <alexander@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=libxmu
pkgver=1.0.4
pkgrel=2
pkgdesc="X11 miscellaneous micro-utility library"
arch=(arm)
url="http://xorg.freedesktop.org/"
depends=('libxext' 'libxt')
makedepends=('pkgconfig')
license=('custom')
options=('!libtool')
source=(${url}/releases/individual/lib/libXmu-${pkgver}.tar.bz2)
md5sums=('fb372a5f3ab42b5ba16d7af4d833a0cb')
build() {
cd ${startdir}/src/libXmu-${pkgver}
[ $CARCH == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
./configure --prefix=/usr --sysconfdir=/etc \
--host=${CHOST} --build=${CHOST}
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
# install custom license
install -Dm644 $srcdir/libXmu-$pkgver/COPYING \
$pkgdir/usr/share/licenses/$pkgname/COPYING
}