main/glade3: fix metadata, add test suite, modernise

This commit is contained in:
A. Wilcox 2018-02-05 18:54:15 -06:00 committed by William Pitcock
parent fe10a48c95
commit 8b67ef5000

View File

@ -1,24 +1,19 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glade3
pkgver=3.8.5
pkgrel=4
pkgdesc="a RAD tool to enable quick & easy development of user interfaces for GTK+"
pkgrel=5
pkgdesc="A RAD tool for rapid development of GTK+ user interfaces"
url="https://glade.gnome.org/"
arch="all"
license="GPL"
license="LGPL-2.1+ AND GPL-2.0+"
depends=
makedepends="gtk+2.0-dev libxml2-dev paxmark"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/glade3/${pkgver%.*}/glade3-$pkgver.tar.xz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@ -28,17 +23,19 @@ build() {
--infodir=/usr/share/info \
--enable-compile-warnings=no \
--disable-scrollkeeper \
--disable-gnome \
|| return 1
make || return 1
--disable-gnome
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
paxmark -r "$pkgdir"/usr/bin/glade-3 || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
paxmark -r "$pkgdir"/usr/bin/glade-3
}
md5sums="4e4b4f5ee34a03e017e4cef97d796c1f glade3-3.8.5.tar.xz"
sha256sums="58a5f6e4df4028230ddecc74c564808b7ec4471b1925058e29304f778b6b2735 glade3-3.8.5.tar.xz"
sha512sums="722a33f1a1ec3baa785bf3c6f7f5ec2cbe7cf6fe44c9c26d33728de16f2856cbb1ace0cd38c5b5356081e326666cc82fd00f2b6af53bd06bb832079610042985 glade3-3.8.5.tar.xz"