# $Id: PKGBUILD 118798 2014-09-11 05:19:42Z bpiotrowski $ # Maintainer (Arch): Sergej Pupykin # Contributor (Arch): durbatuluk # Contributor (Arch): Steve Ponsford # Maintainer: Márcio Silva pkgname=blackbox pkgver=0.70.1 pkgrel=12.parabola1 pkgdesc="A window manager for X11, without nonfree programs on the menu" url="http://${pkgname}wm.sourceforge.net/" arch=('i686' 'x86_64' 'mips64el') depends=('gcc-libs' 'libxft' 'libxext' 'libx11' 'libxt') replaces=($pkgname-libre) conflicts=($pkgname-libre) license=('MIT') source=(http://downloads.sourceforge.net/${pkgname}wm/$pkgname-$pkgver.tar.gz gcc4.3.patch bbdock.patch bsetbg-feh.patch textpropertytostring-unconditional.patch blackbox-0.70.1-asneeded.patch menu) md5sums=('2d173b95ca5e64ef478c6a5d2deee9df' 'bc7a1335d77cdeb6f85cba4d01e68e63' '69c5a5e981b087b2d8267cab996b48dd' 'e7fb0d5bfd95820c0194ec73df66dadc' '3b92ad246f07126dd55ae9634d6e875e' 'f4fefa5f25c65c5d9a601e9c14646757') prepare() { cd $srcdir/$pkgname-$pkgver patch -Np1 -i ../gcc4.3.patch patch -Np0 -i ../bbdock.patch patch -Np0 -i ../bsetbg-feh.patch patch -Np1 -i ../textpropertytostring-unconditional.patch patch -Np0 -i ../blackbox-0.70.1-asneeded.patch autoreconf -fi } build() { cd $srcdir/$pkgname-$pkgver ./configure --prefix=/usr --mandir=/usr/share/man make } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR=$pkgdir install install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE install -D -m644 $srcdir/menu $pkgdir/usr/share/$pkgname/menu }