archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gtkglext / trunk / PKGBUILD
blobb4b4bf781c1901b35dd26df03097a24ea52c04e8
1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: Ben <ben@benmazer.net>
4 pkgname=gtkglext
5 pkgver=1.2.0
6 pkgrel=13
7 pkgdesc="opengl extensions for gtk2"
8 arch=('x86_64')
9 url="http://gtkglext.sourceforge.net/"
10 license=('LGPL')
11 depends=('gtk2' 'glu' 'libxmu')
12 makedepends=('python')
13 source=("https://downloads.sourceforge.net/sourceforge/gtkglext/${pkgname}-${pkgver}.tar.bz2"
14         'gtk2.20.patch' gtkglext-gcc8.patch kill-pangox.patch)
15 sha256sums=('16bd736074f6b14180f206b7e91263fc721b49912ea3258ab5f094cfa5497f51'
16             '864c6963c4a2f4f69f1f028ecee6c821a4f4d5aba142f2e07898aede825ce9ea'
17             '0ec0c22b15054b0684f9a9015ff05920af0c00dae5409e76321f683dcc17cff9'
18             '8ce31aa17ea84aede3b03fa392ec95e0e9c001f348384ba93d850de9f0b7044e')
20 prepare() {
21   cd $pkgname-$pkgver
23   patch -Np1 -i "${srcdir}/kill-pangox.patch"
24   patch -Np1 -i "${srcdir}/gtk2.20.patch"
25   sed '/AC_PATH_XTRA/d' -i configure.in  
26   patch -p1 -i ../gtkglext-gcc8.patch # Fix build with GCC 8
28   autoreconf -vi
30   
31 build() {
32   cd ${pkgname}-${pkgver}
34   ./configure --prefix=/usr \
35               --disable-static
36   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
37   make
40 package() {
41   cd ${pkgname}-${pkgver}
42   make DESTDIR="${pkgdir}" install