diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-09-19 10:22:36 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-20 09:45:51 +0000 |
commit | 9b21a5d592d575ecec693ddf49e656d536b12aec (patch) | |
tree | 0cc4637ac5a67407bea36858826ddb6c13b89fac /main/libgcab | |
parent | 752eb06ec4f0fbfdbc0673d727ccf50a03a52b3d (diff) | |
download | aports-9b21a5d592d575ecec693ddf49e656d536b12aec.tar.bz2 aports-9b21a5d592d575ecec693ddf49e656d536b12aec.tar.xz |
main/libgcab: modernize abuild, add check and fix VERSION of .pc file
Diffstat (limited to 'main/libgcab')
-rw-r--r-- | main/libgcab/APKBUILD | 22 | ||||
-rw-r--r-- | main/libgcab/configure.patch | 12 |
2 files changed, 25 insertions, 9 deletions
diff --git a/main/libgcab/APKBUILD b/main/libgcab/APKBUILD index dbdd71d59e..7ac6fd2d7a 100644 --- a/main/libgcab/APKBUILD +++ b/main/libgcab/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=libgcab pkgver=0.7 -pkgrel=0 +pkgrel=1 pkgdesc="A GObject library to create cabinet files" url=" https://wiki.gnome.org/msitools" arch="all" @@ -11,20 +11,25 @@ depends="" depends_dev="gettext-dev" makedepends="$depends_dev automake autoconf libtool gobject-introspection-dev - intltool glib-dev gtk-doc" + intltool glib-dev gtk-doc py-six" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" -source="$pkgname-$pkgver.tar.gz::https://github.com/GNOME/gcab/archive/v${pkgver}.tar.gz" - +source="http://ftp.gnome.org/pub/GNOME/sources/gcab/${pkgver:0:4}/gcab-$pkgver.tar.xz + configure.patch + " builddir="$srcdir"/gcab-$pkgver build() { cd "$builddir" - ./autogen.sh ./configure \ --prefix=/usr \ --disable-nls - make || return 1 + make +} + +check() { + cd "$builddir" + make check } package() { @@ -32,6 +37,5 @@ package() { make DESTDIR="$pkgdir" install } -md5sums="146d16bfad689a7dbccb8a0f585982c1 libgcab-0.7.tar.gz" -sha256sums="da1569630865e7f75f8d1780bcce232895da47f7dfa17b3631b65d15ab748e94 libgcab-0.7.tar.gz" -sha512sums="1124548d7b0de966ed5b13f63ecc0523bc76e619683fe30509d52e4acbeafd7c95e132f82635663fc5adf20ebee12a0aa521181759a5998f45a5c3a202465adc libgcab-0.7.tar.gz" +sha512sums="db8c0b4ee2bc75b8bb540b4fe0e9304782b9848b3ab0ba3077638d13cdec652f6178206ec6474af036fba90e952ef0052dd9d19be9eb72bae97d98f8f18a0c02 gcab-0.7.tar.xz +110fe07dcc3fceffd174d6dd417e2906e63ad7ba4021ceae9d6c6b660a483e68530223c6bc65ae98a448b756930904c9bb320e0d8ed3a17f895d6986e90d3203 configure.patch" diff --git a/main/libgcab/configure.patch b/main/libgcab/configure.patch new file mode 100644 index 0000000000..f9f834bf38 --- /dev/null +++ b/main/libgcab/configure.patch @@ -0,0 +1,12 @@ +Description: Replace version from tarball +Author: Stephen Kitt <skitt@debian.org> + +--- a/configure.ac ++++ b/configure.ac +@@ -1,5 +1,5 @@ + AC_PREREQ(2.57) +-AC_INIT([gcab], m4_esyscmd([build-aux/git-version-gen .tarball-version]), ++AC_INIT([gcab], m4_esyscmd([echo -n $(cat .tarball-version)]), + [https://bugzilla.gnome.org/enter_bug.cgi?product=msitools&component=gcab]) + AC_CONFIG_SRCDIR([gcab.c]) + AC_CONFIG_AUX_DIR([build-aux]) |