updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / mbfl / PKGBUILD
blob372494733892bdf38f5eae2112677df3d73dd4e9
1 # Contributor: LTSmash <lord.ltsmash@gmail.com>
2 pkgname=mbfl
3 pkgver=1.1.4
4 pkgrel=1
5 pkgdesc="Marco's Bash Functions Library is a library of functions for the GNU bash shell, intended to be sourced by scripts at runtime."
6 arch=(i686 x86_64)
7 url="https://gna.org/projects/mbfl/"
8 license=('LGPL')
9 depends=(bash)
10 install="mbfl.install"
11 source=(http://download.gna.org/mbfl/$pkgver/$pkgname'_'$pkgver'_'src.tar.gz)
12 md5sums=('9c6e0656499a775af79c03bcaf58e929')
14 build() {
15   cd "$srcdir/$pkgname"_"$pkgver"
16   ./configure --prefix=/usr
17   
18   #Workaround bug which doen't lets make finish (not finding mbfl-config)
19   cp ../../patch.diff scripts/patch.diff
20   cd scripts/
21   patch < patch.diff
22   chmod +x mbfl-config
23   alias mbfl-config="$srcdir/$pkgname_$pkgver/scripts/mbfl-config"
24   cd ..
25   #Done
26   
27   #Installing
28   make all || return 1
29   make INSTALL_ROOT="$pkgdir" install
30