updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / bicon / PKGBUILD
blob691bd6abeb816d9317dab8826e93d9eb1c448662
1 # Contributor: linuxSEAT <--put_my_name_here--@gmail.com>
2 #       Contributor: Nezmer <Nezmer@allurelinux.org>
4 pkgname=bicon
5 pkgver=0.2.0
6 pkgrel=3
7 pkgdesc="A bidirectional console"
8 url="http://www.arabeyes.org/"
9 arch=('i686' 'x86_64')
10 license=('LGPL')
11 depends=('fribidi')
12 options=('!libtool')
13 source=(http://downloads.sourceforge.net/arabeyes/$pkgname-$pkgver.tar.gz
14         arabic.map.gz)
15 noextract=('arabic.map.gz')
16 md5sums=('911600c6e9fd3595bea95ae250b8f96a'
17          '4f1d5f13969ba7f571e77f80612db480')
18 LDFLAGS=${LDFLAGS//-Wl,--as-needed}
20 build() {
21   cd $srcdir/$pkgname-$pkgver
22   ./configure --prefix=/usr --mandir=/usr/share/man
23   make || return 1
24   make DESTDIR="${pkgdir}" install || return 1
25         #remove non-working keymap
26         rm -f "$pkgdir/usr/share/bicon/keymap/arabic.map.gz" || return 1
27         #install working keymap
28         install -D -m644 ../../arabic.map.gz "$pkgdir/usr/share/bicon/keymap/arabic.map.gz"     
29         #important keymap and font links
30         install -d "$pkgdir/usr/share/kbd/keymaps"
31         for i in `ls -1 $pkgdir/usr/share/bicon/keymap`;do
32         ln -sf "/usr/share/bicon/keymap/$i" "$pkgdir/usr/share/kbd/keymaps/" || return 1
33         done
34         install -d "${pkgdir}/usr/share/kbd/consolefonts"
35         for i in `ls -1 "$pkgdir/usr/share/bicon/font"`;do
36         ln -sf "/usr/share/bicon/font/$i" "$pkgdir/usr/share/kbd/consolefonts/" || return 1
37         done