main/libwnck: modernise, add check, fix license

This commit is contained in:
A. Wilcox 2018-02-11 00:09:57 -06:00 committed by William Pitcock
parent 9a10fd2b19
commit 561cb2669d

View File

@ -1,46 +1,44 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwnck
pkgver=2.31.0
pkgrel=5
pkgrel=6
pkgdesc="Window Navigator Construction Kit"
url="https://git.gnome.org/browse/libwnck"
arch="all"
license="LGPL"
license="LGPL-2.0+"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
depends_dev="glib-dev gtk+2.0-dev libx11-dev pango-dev cairo-dev
startup-notification-dev libxres-dev"
makedepends="$depends_dev libxres-dev intltool"
makedepends="glib-dev gtk+2.0-dev libx11-dev pango-dev cairo-dev intltool
startup-notification-dev gobject-introspection-dev libxres-dev"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
cd "$builddir"
update_config_sub
default_prepare
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
|| return 1
make || return 1
--disable-static
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/bin/wnckprop \
"$pkgdir"/usr/bin/wnck-urgency-monitor \
|| return 1
"$pkgdir"/usr/bin/wnck-urgency-monitor
}
md5sums="f03e1139296e2a3a92e3b65a3080cd32 libwnck-2.31.0.tar.xz"
sha256sums="83f732d20781fc88b22cdc6aaf2d4f388db6d3d4ff28d1a8fd45be9fb7743a9e libwnck-2.31.0.tar.xz"
sha512sums="54262a08882021f08f3ba7f2ddfa33fc1f02e391a0f61cf999a50a089e0d277dfe13ab133c1a46e9abf0599bd24c21dacff80b51013cbb1375d2cd71ac9abbe9 libwnck-2.31.0.tar.xz"