updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / box / PKGBUILD
blobf5df8c29f27a6d1fbb4d5e3bee01bf285e1c2e31
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=box
4 pkgver=0.3.1
5 pkgrel=1
6 pkgdesc="A programming language thought to create graphic figures."
7 arch=(i686 x86_64)
8 url="http://sourceforge.net/projects/boxc/"
9 license=('GPL')
10 depends=('cairo' 'libltdl')
11 makedepends=('libtool')
12 optdepends=('boxer: pygtk GUI')
13 conflicts=("$pkgname-core")
14 replaces=("$pkgname-core")
15 options=('!libtool')
16 source=("http://switch.dl.sourceforge.net/project/boxc/Box%20-%20the%20compiler/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
17 md5sums=('559402b2bbe3d0f8cba596fae3cc8c3e')
19 build() {
20   cd "$srcdir/$pkgname-$pkgver"
22   # remove insecure rpath
23   sed -i "s|\(\${wl}\-rpath\)\( \${wl}\$libdir\)|\1-link\2|" configure
25   ./configure --prefix=/usr \
26               --enable-static=no \
27               --with-cairo
28   make
31 package() {
32   cd "$srcdir/$pkgname-$pkgver"
34   make DESTDIR="$pkgdir/" install
36   # examples
37   install -d "$pkgdir/usr/share/$pkgname"
38   cp -a examples "$pkgdir/usr/share/$pkgname"
39   find "$pkgdir/usr/share/$pkgname" -name "Makefile*" -delete
42 # vim:set ts=2 sw=2 et: