mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
main/gtk+2.0: modernise, explicit configure, license
This commit is contained in:
parent
210b3f7f39
commit
3704cbf44d
@ -1,14 +1,15 @@
|
|||||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
pkgname=gtk+2.0
|
pkgname=gtk+2.0
|
||||||
pkgver=2.24.31
|
pkgver=2.24.31
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
subpkg=gtk-update-icon-cache
|
subpkg=gtk-update-icon-cache
|
||||||
pkgdesc="The GTK+ Toolkit (v2)"
|
pkgdesc="The GTK+ Toolkit (v2)"
|
||||||
url="https://www.gtk.org/"
|
url="https://www.gtk.org/"
|
||||||
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
|
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
|
||||||
triggers="$subpkg.trigger=/usr/share/icons/*"
|
triggers="$subpkg.trigger=/usr/share/icons/*"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="LGPL"
|
options="!check" # Requires xvfb, resulting in eventual circular dependency
|
||||||
|
license="LGPL-2.0+"
|
||||||
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $subpkg:icon_cache"
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $subpkg:icon_cache"
|
||||||
depends="shared-mime-info gtk-update-icon-cache"
|
depends="shared-mime-info gtk-update-icon-cache"
|
||||||
|
|
||||||
@ -30,9 +31,9 @@ makedepends="
|
|||||||
$depends_dev
|
$depends_dev
|
||||||
cups-dev
|
cups-dev
|
||||||
expat-dev
|
expat-dev
|
||||||
gdk-pixbuf-dev
|
gdk-pixbuf-dev
|
||||||
gettext-dev
|
gettext-dev
|
||||||
glib-dev
|
glib-dev
|
||||||
gnutls-dev
|
gnutls-dev
|
||||||
gobject-introspection-dev
|
gobject-introspection-dev
|
||||||
gtk-doc
|
gtk-doc
|
||||||
@ -51,16 +52,11 @@ source="https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz
|
|||||||
gtk2-fixdso.patch
|
gtk2-fixdso.patch
|
||||||
"
|
"
|
||||||
|
|
||||||
|
builddir="$srcdir"/gtk+-$pkgver
|
||||||
|
|
||||||
_builddir="$srcdir"/gtk+-$pkgver
|
|
||||||
prepare() {
|
prepare() {
|
||||||
local i
|
cd "$builddir"
|
||||||
cd "$_builddir"
|
default_prepare
|
||||||
for i in $source; do
|
|
||||||
case $i in
|
|
||||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
libtoolize --force \
|
libtoolize --force \
|
||||||
&& aclocal -I m4 \
|
&& aclocal -I m4 \
|
||||||
&& autoconf \
|
&& autoconf \
|
||||||
@ -68,7 +64,7 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
./configure \
|
./configure \
|
||||||
--build=$CBUILD \
|
--build=$CBUILD \
|
||||||
--host=$CHOST \
|
--host=$CHOST \
|
||||||
@ -78,32 +74,34 @@ build() {
|
|||||||
--with-xinput=yes \
|
--with-xinput=yes \
|
||||||
--without-libjasper \
|
--without-libjasper \
|
||||||
--with-included-loaders=png \
|
--with-included-loaders=png \
|
||||||
|| return 1
|
--with-gdktarget=x11 \
|
||||||
|
--enable-cups \
|
||||||
|
--enable-man
|
||||||
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
||||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || return 1
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||||
make || return 1
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
dev() {
|
dev() {
|
||||||
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/
|
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/share/
|
||||||
mv "$pkgdir"/usr/share/gtk-2.0 "$subpkgdir"/usr/share/ || return 1
|
mv "$pkgdir"/usr/share/gtk-2.0 "$subpkgdir"/usr/share/
|
||||||
default_dev
|
default_dev
|
||||||
replaces="gtk+2.0"
|
replaces="gtk+2.0"
|
||||||
mv "$pkgdir"/usr/bin/gtk-builder-convert \
|
mv "$pkgdir"/usr/bin/gtk-builder-convert \
|
||||||
"$pkgdir"/usr/bin/gtk-demo \
|
"$pkgdir"/usr/bin/gtk-demo \
|
||||||
"$subpkgdir"/usr/bin || return 1
|
"$subpkgdir"/usr/bin
|
||||||
}
|
}
|
||||||
|
|
||||||
icon_cache() {
|
icon_cache() {
|
||||||
depends="hicolor-icon-theme"
|
depends="hicolor-icon-theme"
|
||||||
|
|
||||||
mkdir -p "$subpkgdir"/usr/bin
|
mkdir -p "$subpkgdir"/usr/bin
|
||||||
mv "$pkgdir"/usr/bin/"$subpkg" "$subpkgdir"/usr/bin || return 1
|
mv "$pkgdir"/usr/bin/"$subpkg" "$subpkgdir"/usr/bin
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="75b846661308d94b5236e7e1c367deabf57753792ca87e92f9769822dd5ec90e00cd8d5574adcc12162e3702e1ae6dc152278a1d218f9bd9e4d1c8dc1dd520c1 gtk+-2.24.31.tar.xz
|
sha512sums="75b846661308d94b5236e7e1c367deabf57753792ca87e92f9769822dd5ec90e00cd8d5574adcc12162e3702e1ae6dc152278a1d218f9bd9e4d1c8dc1dd520c1 gtk+-2.24.31.tar.xz
|
||||||
|
Loading…
Reference in New Issue
Block a user