[arch-commits] Commit in (5 files)
Felix Yan
felixonmars at archlinux.org
Wed Nov 7 17:38:43 UTC 2018
Date: Wednesday, November 7, 2018 @ 17:38:42
Author: felixonmars
Revision: 403000
addpkg: imwheel 1.0.0pre12-5
Added:
imwheel/
imwheel/repos/
imwheel/trunk/
imwheel/trunk/PKGBUILD
imwheel/trunk/etcdir-install.patch
----------------------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
etcdir-install.patch | 17 +++++++++++++++++
2 files changed, 51 insertions(+)
Added: imwheel/trunk/PKGBUILD
===================================================================
--- imwheel/trunk/PKGBUILD (rev 0)
+++ imwheel/trunk/PKGBUILD 2018-11-07 17:38:42 UTC (rev 403000)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
+# Contributor: Travis Willard <travis at archlinux.org>
+# Contributor: Paul Mattal <paul at mattal.com>
+# Contributor: Thanasis Georgiou <contact at thgeorgiou.com>
+
+pkgname=imwheel
+pkgver=1.0.0pre12
+pkgrel=5
+pkgdesc='Mouse wheel configuration tool for XFree86/Xorg'
+arch=('x86_64')
+url='http://imwheel.sourceforge.net'
+license=('GPL')
+depends=('libxtst' 'libxmu')
+backup=('etc/X11/imwheel/imwheelrc')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+ 'etcdir-install.patch')
+sha256sums=('2320ed019c95ca4d922968e1e1cbf0c075a914e865e3965d2bd694ca3d57cfe3'
+ '602a466e5537e7edb53247648fef62ea5bfa51e56f68dfd9f4fcb4b19e38fd16')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ # patch to fix buggy location of ETCDIR
+ patch -p1 -i "${srcdir}/etcdir-install.patch"
+
+ ./configure --prefix=/usr --mandir=/usr/share/man
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
Added: imwheel/trunk/etcdir-install.patch
===================================================================
--- imwheel/trunk/etcdir-install.patch (rev 0)
+++ imwheel/trunk/etcdir-install.patch 2018-11-07 17:38:42 UTC (rev 403000)
@@ -0,0 +1,17 @@
+--- imwheel-1.0.0pre12/Makefile.in 2004-08-29 06:36:33.000000000 -0400
++++ imwheel-1.0.0pre12-fixed/Makefile.in 2005-01-04 14:46:37.000000000 -0500
+@@ -781,10 +781,10 @@
+ @SUID_TRUE@ progname=$(DESTDIR)$(bindir)/`echo imwheel|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'` ; \
+ @SUID_TRUE@ chown @suid@ $$progname ; \
+ @SUID_TRUE@ chmod u+s $$progname
+- $(mkinstalldirs) $(ETCDIR)
+- -[ -f /etc/imwheelrc ] && mv /etc/imwheelrc $(ETCDIR)/imwheelrc || true
+- -[ -f /etc/X11/imwheelrc ] && mv /etc/X11/imwheelrc $(ETCDIR)/imwheelrc || true
+- -[ -f $(ETCDIR)/imwheelrc ] && install -m 644 imwheelrc $(ETCDIR)/imwheelrc.new || install -m 644 imwheelrc $(ETCDIR)/imwheelrc
++ $(mkinstalldirs) $(DESTDIR)$(ETCDIR)
++ -[ -f /etc/imwheelrc ] && mv /etc/imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc || true
++ -[ -f /etc/X11/imwheelrc ] && mv /etc/X11/imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc || true
++ -[ -f $(ETCDIR)/imwheelrc ] && install -m 644 imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc.new || install -m 644 imwheelrc $(DESTDIR)$(ETCDIR)/imwheelrc
+
+ extras: $(EXTRA_PROGRAMS)
+
More information about the arch-commits
mailing list