Commit f407984d authored by Leo's avatar Leo
Browse files

main/libglade: drop python2

parent 88d8cf36
Pipeline #1382 passed with stages
in 1 minute and 18 seconds
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libglade
pkgver=2.6.4
pkgrel=14
pkgrel=15
pkgdesc="Allows you to load glade interface files in a program at runtime"
url="http://www.gnome.org"
arch="all"
license="LGPL"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
depends="libxml2-utils"
depends_dev="gtk+2.0-dev libxml2-dev"
makedepends="$depends_dev python2 autoconf automake libtool"
makedepends="$depends_dev autoconf automake libtool"
install="$pkgname.post-install $pkgname.pre-upgrade $pkgname.post-upgrade
$pkgname.post-deinstall"
source="https://download.gnome.org/sources/$pkgname/2.6/$pkgname-$pkgver.tar.bz2
source="https://download.gnome.org/sources/libglade/2.6/libglade-$pkgver.tar.bz2
$pkgname-2.0.1-nowarning.patch
libglade-gmodule.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
cd "$builddir"
default_prepare
update_config_sub
libtoolize --force && aclocal && autoheader && autoconf \
&& automake --add-missing || return 1
&& automake --add-missing
}
build() {
cd "$_builddir"
sed -i '/DG_DISABLE_DEPRECATED/d' glade/Makefile.in || return 1
cd "$builddir"
sed -i '/DG_DISABLE_DEPRECATED/d' glade/Makefile.in
./configure \
--build=$CBUILD \
--host=$CHOST \
--sysconfdir=/etc \
--prefix=/usr \
--disable-static \
--localstatedir=/var \
|| return 1
make || return 1
--localstatedir=/var
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 libglade-convert "$pkgdir"/usr/bin/ || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
install -m755 libglade-convert "$pkgdir"/usr/bin/
}
md5sums="d1776b40f4e166b5e9c107f1c8fe4139 libglade-2.6.4.tar.bz2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment