[arch-commits] Commit in gsound/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu Mar 14 20:49:39 UTC 2019


    Date: Thursday, March 14, 2019 @ 20:49:37
  Author: heftig
Revision: 348106

1.0.2-4

Modified:
  gsound/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-14 20:38:18 UTC (rev 348105)
+++ PKGBUILD	2019-03-14 20:49:37 UTC (rev 348106)
@@ -2,25 +2,40 @@
 
 pkgname=gsound
 pkgver=1.0.2
-pkgrel=3
+pkgrel=4
 pkgdesc="Small library for playing system sounds"
 url="https://wiki.gnome.org/Projects/GSound"
 license=('LGPL')
 arch=('x86_64')
 depends=(glib2 libcanberra)
-makedepends=(gobject-introspection vala)
-source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:3}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53')
+makedepends=(gobject-introspection vala git gtk-doc autoconf-archive)
+_commit=a86946b494aa32782b3f6334344d07b5c11d5219  # tags/1.0.2^0
+source=("git+https://gitlab.gnome.org/GNOME/gsound.git#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --disable-static
-
+  cd $pkgname
+  ./configure --prefix=/usr --disable-static --enable-gtk-doc \
+    --enable-compile-warnings=yes
   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