Skip to content
Snippets Groups Projects
Verified Commit 03c2cfa4 authored by Anna Wilcox's avatar Anna Wilcox :fox:
Browse files

user/gtk+2.0: overhaul (see commit msg)

* Insert static -lintl from gettext-tiny into build.  This makes the GTK
  LOCALEDIR finally /usr/share/locale instead of /usr/lib/locale.

* Remove old replaces= from Alpine.  This isn't Alpine, we never had a gtk+.

* Shuffle variables around to match Adélie preferred style.

* Don't define a global `subpkg` variable for a single subpackage(???)

* Modernise.

* Take maintainership over.
parent 208782f8
No related branches found
No related tags found
No related merge requests found
# Maintainer:
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gtk+2.0
pkgver=2.24.32
pkgrel=1
subpkg=gtk-update-icon-cache
pkgrel=2
pkgdesc="The GTK+ Toolkit (v2)"
url="https://www.gtk.org/"
arch="all"
options="!check" # Requires xvfb, resulting in eventual circular dependency
license="LGPL-2.0+"
depends="shared-mime-info gtk-update-icon-cache"
replaces="gtk+"
replaces_dev="gtk+-dev"
replaces_doc="gtk+-doc"
depends_dev="libxdamage-dev"
# we add hicolor-icon-theme because the subpackage gtk-update-icon-cache
# needs it. We need to force hicolor-icon-cache to be built before gtk+.2.0
makedepends="
autoconf automake libtool
$depends_dev
atk-dev
cairo-dev
cups-dev
expat-dev
gdk-pixbuf-dev
glib-dev
gnutls-dev
gobject-introspection-dev
gtk-doc
hicolor-icon-theme
libice-dev
libx11-dev
libxcomposite-dev
libxcursor-dev
libxext-dev
libxfixes-dev
libxrandr-dev
libxi-dev
pango-dev
zlib-dev"
makedepends="autoconf automake libtool $depends_dev
atk-dev cairo-dev cups-dev expat-dev gdk-pixbuf-dev glib-dev gnutls-dev
gobject-introspection-dev gtk-doc hicolor-icon-theme libice-dev
libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxfixes-dev
libxrandr-dev libxi-dev pango-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang
gtk-update-icon-cache:icon_cache"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
triggers="gtk-update-icon-cache.trigger=/usr/share/icons/*"
source="https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz
xid-collision-debug.patch
gtk2-fixdso.patch
"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
triggers="$subpkg.trigger=/usr/share/icons/*"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $subpkg:icon_cache"
langdir="/usr/lib/locale"
builddir="$srcdir"/gtk+-$pkgver
prepare() {
cd "$builddir"
default_prepare
libtoolize --force \
&& aclocal -I m4 \
......@@ -61,8 +35,7 @@ prepare() {
}
build() {
cd "$builddir"
./configure \
LIBS="-lintl" ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
......@@ -80,7 +53,6 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......@@ -98,7 +70,7 @@ icon_cache() {
depends="hicolor-icon-theme"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/"$subpkg" "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/gtk-update-icon-cache "$subpkgdir"/usr/bin
}
sha512sums="8e8fd9ae32f1d6fb544da260f00599f0f05090d910d767b06ef086ab4f1f8373a29bb0da9767761c9b5f4cfd51b5c45d0fa5d39b0428c839ddf0a579df806696 gtk+-2.24.32.tar.xz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment