PKGBUILDs/community/gnubg/PKGBUILD

49 lines
1.1 KiB
Bash
Raw Normal View History

2014-10-07 21:35:25 +00:00
# Maintainer: Jonathan Steel <jsteel at archlinux.org>
2014-08-10 13:30:27 +00:00
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Stefan Clarke <fm0nk3y@yahoo.co.uk>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - --enable-simd=no
pkgname=gnubg
2015-04-25 15:07:44 +00:00
pkgver=1.05.000
2016-05-05 23:50:06 +00:00
pkgrel=2
2014-11-02 16:24:58 +00:00
pkgdesc="World class backgammon application"
2014-08-10 13:30:27 +00:00
arch=('i686' 'x86_64')
url="http://www.gnubg.org"
2014-11-02 16:24:58 +00:00
license=('GPL3')
2016-05-05 23:50:06 +00:00
depends=('python2' 'gtkglext' 'curl')
2014-08-10 13:30:27 +00:00
source=($url/media/sources/$pkgname-release-$pkgver-sources.tar.gz
2016-05-05 23:50:06 +00:00
glib-gettext.patch
2014-08-10 13:30:27 +00:00
$pkgname.desktop)
2015-04-25 15:07:44 +00:00
md5sums=('2c2d291deedcb72d1fcbbd8faf90d55c'
2016-05-05 23:50:06 +00:00
'bad5a86bebc1c16aad4cfbdf9444f8a0'
2014-08-10 13:30:27 +00:00
'965f5c7c25f60b27d06cc6fef7befd30')
2016-05-05 23:50:06 +00:00
prepare() {
cd $pkgname-$pkgver
patch -Np0 -i "$srcdir"/glib-gettext.patch
}
2014-08-10 13:30:27 +00:00
build() {
2014-11-02 16:24:58 +00:00
cd $pkgname-$pkgver
2014-08-10 13:30:27 +00:00
./autogen.sh
2016-05-05 23:50:06 +00:00
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=0" \
2014-08-10 13:30:27 +00:00
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc \
--mandir=/usr/share/man --enable-simd=no
make
}
package() {
2014-11-02 16:24:58 +00:00
cd $pkgname-$pkgver
2014-08-10 13:30:27 +00:00
2014-11-02 16:24:58 +00:00
make DESTDIR="$pkgdir" install
2014-08-10 13:30:27 +00:00
install -Dm644 "$srcdir"/$pkgname.desktop \
"$pkgdir"/usr/share/applications/$pkgname.desktop
}