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

Jan Steffens heftig at archlinux.org
Thu Mar 14 20:05:44 UTC 2019


    Date: Thursday, March 14, 2019 @ 20:05:17
  Author: heftig
Revision: 348075

3.32.0-1

Modified:
  mousetweaks/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-14 20:04:11 UTC (rev 348074)
+++ PKGBUILD	2019-03-14 20:05:17 UTC (rev 348075)
@@ -2,26 +2,39 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgname=mousetweaks
-pkgver=3.12.0
-pkgrel=3
+pkgver=3.32.0
+pkgrel=1
 pkgdesc="Mouse accessibility enhancements"
 url="https://wiki.gnome.org/Projects/Mousetweaks"
 arch=(x86_64)
 license=(GPL3 FDL)
 depends=(libxtst gtk3 gsettings-desktop-schemas)
-makedepends=(intltool python)
+makedepends=(python git)
 groups=(gnome)
-options=(!emptydirs)
-source=(https://download.gnome.org/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('c0db478ccb390665e3201e9d1ce08b1c6573a697b797c9e828debb94b1ae3b97')
+_commit=db65986e791c8dd001f8e295d19e374dd5e3efd5  # tags/3.32.0^0
+source=("git+https://gitlab.gnome.org/GNOME/mousetweaks.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
+  cd $pkgname
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
   make
 }
 
+check() {
+  make -C $pkgname check
+}
+
 package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="$pkgdir" make install -C $pkgname
 }


More information about the arch-commits mailing list