[arch-commits] Commit in amtk/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Sep 13 09:41:19 UTC 2019
Date: Friday, September 13, 2019 @ 09:41:19
Author: heftig
Revision: 362467
5.0.1-1
Modified:
amtk/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++++++++++++++++++++++-------
1 file changed, 27 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-13 09:38:17 UTC (rev 362466)
+++ PKGBUILD 2019-09-13 09:41:19 UTC (rev 362467)
@@ -1,8 +1,9 @@
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
pkgname=amtk
-pkgver=5.0.0
-pkgrel=2
+pkgver=5.0.1
+pkgrel=1
pkgdesc="Actions, Menus and Toolbars Kit for GTK+ applications"
arch=(x86_64)
url="https://wiki.gnome.org/Projects/Amtk"
@@ -9,17 +10,36 @@
license=(LGPL2.1)
depends=(gtk3)
makedepends=(autoconf-archive git gobject-introspection gtk-doc)
-source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
-sha256sums=('12a996978a30b7b69a810ac0c5656d5cf2f58d9787b98a0c028ff1b64e8f31ff')
+_commit=4299cc5a24c013f0f4b4cda9cde8b2d288d0ee5f # tags/5.0.1^0
+source=("git+https://gitlab.gnome.org/GNOME/amtk.git#commit=$_commit")
+sha256sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+
+ # Our autoconf-archive is too new (AX_CODE_COVERAGE changed API in v28)
+ find -name Makefile.am -exec sed -i '/@CODE_COVERAGE_RULES@/d' {} +
+
+ NOCONFIGURE=1 ./autogen.sh
+}
+
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
./configure --prefix=/usr --enable-gtk-doc --disable-Werror
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
+check() {
+ make -C $pkgname check
+}
+
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list