This repository has been archived by the owner on Feb 27, 2018. It is now read-only.
/
PKGBUILD
70 lines (60 loc) · 2.78 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: György Balló <ballogy@freestart.hu>
pkgname=gtk3-ubuntu
_ubuntu_rel=0ubuntu3.1
_ubuntu_ver=3.6.0
_actual_ver=3.6.2
pkgver=${_actual_ver}.ubuntu${_ubuntu_ver}.${_ubuntu_rel}
pkgrel=100
pkgdesc="GObject-based multi-platform toolkit (v3)"
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
install=arch_gtk3.install
depends=('atk' 'cairo' 'gtk-update-icon-cache' 'libcups' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'pango' 'shared-mime-info' 'colord' 'at-spi2-atk')
makedepends=('gobject-introspection')
provides=("gtk3=${pkgver%.*.*}")
conflicts=('gtk3')
options=('!libtool' '!docs')
backup=('etc/gtk-3.0/settings.ini')
license=('LGPL')
source=("http://ftp.gnome.org/pub/GNOME/sources/gtk+/${_actual_ver%.*}/gtk+-${_actual_ver}.tar.xz"
"https://launchpad.net/ubuntu/+archive/primary/+files/gtk+3.0_${_ubuntu_ver}-${_ubuntu_rel}.debian.tar.gz"
'arch_settings.ini')
sha512sums=('3b67c75e1de29679f2d3ffb095d7999a89967c77673b9daa574f63c8553fab9075627c892f92a4e5caf618c8736a5b476994eb13cedd4b29dadcab19b1a5d5aa'
'db902dea732ea27f2f802cc3e873024390e27f5e2b191657929234949757627cb0ef521c30d65ea486a261324ead65b3ca8f6c9c868c5572cf4f1bba2d7851cc'
'087bf853cb9f6ee8269c60041555ee1546a2d10fbdbe820710c77a74bb9c34735abe8b061e2a0322246932d7a72b21953682fcdca79b09fd555307abb1d88699')
build() {
cd "${srcdir}/gtk+-${_actual_ver}"
# Apply Ubuntu Patches
# Disable patches
# No multiarch
sed -i '/061_multiarch_module_fallback.patch/d' "${srcdir}/debian/patches/series"
# Only causes problems in Ubuntu
sed -i '/revert_git_a11y_stopped.patch/d' "${srcdir}/debian/patches/series"
# Merged upstream
sed -i '/git_use_right_display.patch/d' "${srcdir}/debian/patches/series"
sed -i '/git_iconview_render_item_select.patch/d' "${srcdir}/debian/patches/series"
sed -i '/git_appchooser_check_should_show.patch/d' "${srcdir}/debian/patches/series"
sed -i '/git_process_all_updates_synchronous.patch/d' "${srcdir}/debian/patches/series"
for i in $(cat "${srcdir}/debian/patches/series" | grep -v '#'); do
patch -Np1 -i "${srcdir}/debian/patches/${i}"
done
autoreconf -vfi
CXX=/bin/false ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-gtk2-dependency \
--disable-schemas-compile \
--enable-test-print-backend
#https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make ${MAKEFLAGS}
}
package() {
cd "${srcdir}/gtk+-${_actual_ver}"
make mkdir_p="/bin/mkdir -p" DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/arch_settings.ini" \
"${pkgdir}/etc/gtk-3.0/settings.ini"
}
# vim:set ts=2 sw=2 et: