gtk/gtk3/PKGBUILD

46 lines
1.3 KiB
Bash
Raw Normal View History

2013-05-06 05:39:20 +08:00
pkgname=gtk3
2014-07-12 06:57:02 +08:00
pkgver=3.10.9
2013-05-06 05:39:20 +08:00
pkgmin="${pkgver%.*}"
2014-07-12 06:57:02 +08:00
pkgrel=1
2013-05-06 05:39:20 +08:00
pkgdesc="The GTK+ Toolkit (v3)"
arch=('x86_64')
url="http://www.gtk.org/"
install="gtk3.install"
depends=('glib2' 'cairo' 'gtk-update-icon-cache' 'libcups' 'libxcursor'
2013-05-06 05:39:20 +08:00
'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage'
'pango' 'shared-mime-info' 'colord' 'at-spi2-atk' 'wayland' 'libxkbcommon')
2013-05-06 05:39:20 +08:00
makedepends=('gobject-introspection')
options=('!docs')
backup=("etc/gtk-3.0/settings.ini")
2013-05-06 05:39:20 +08:00
license=('LGPL')
source=("http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgmin}/gtk+-${pkgver}.tar.xz"
'settings.ini')
2014-07-12 06:57:02 +08:00
md5sums=('0200b7922f472a2bade0327012d9f792'
2014-03-09 03:51:05 +08:00
'6bbfc6cc58bae5b1be02e60b48fa51f5')
2013-05-06 05:39:20 +08:00
build() {
cd "${srcdir}/gtk+-${pkgver}"
CXX=/bin/false ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-gtk2-dependency \
--disable-schemas-compile \
--enable-x11-backend \
--enable-broadway-backend \
--enable-wayland-backend
2013-05-06 05:39:20 +08:00
#https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}/gtk+-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 "${srcdir}/settings.ini" \
"${pkgdir}/etc/gtk-3.0/settings.ini"
2013-05-06 05:39:20 +08:00
}