Date: Wednesday, November 7, 2018 @ 17:39:03 Author: felixonmars Revision: 403001
archrelease: copy trunk to community-x86_64 Added: imwheel/repos/community-x86_64/ imwheel/repos/community-x86_64/PKGBUILD (from rev 403000, imwheel/trunk/PKGBUILD) imwheel/repos/community-x86_64/etcdir-install.patch (from rev 403000, imwheel/trunk/etcdir-install.patch) ----------------------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ etcdir-install.patch | 17 +++++++++++++++++ 2 files changed, 51 insertions(+) Copied: imwheel/repos/community-x86_64/PKGBUILD (from rev 403000, imwheel/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2018-11-07 17:39:03 UTC (rev 403001) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Rhinoceros <https://aur.archlinux.org/account/rhinoceros> +# Contributor: Travis Willard <tra...@archlinux.org> +# Contributor: Paul Mattal <p...@mattal.com> +# Contributor: Thanasis Georgiou <cont...@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 +} Copied: imwheel/repos/community-x86_64/etcdir-install.patch (from rev 403000, imwheel/trunk/etcdir-install.patch) =================================================================== --- community-x86_64/etcdir-install.patch (rev 0) +++ community-x86_64/etcdir-install.patch 2018-11-07 17:39:03 UTC (rev 403001) @@ -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) +