Skip to content

Instantly share code, notes, and snippets.

@mcharytoniuk mcharytoniuk/.footprint
Last active Sep 28, 2019

Embed
What would you like to do?
crux - port -imwheel
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/X11/
drwxr-xr-x root/root etc/X11/imwheel/
-rw-r--r-- root/root etc/X11/imwheel/imwheelrc
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/imwheel
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/imwheel.1.gz
--- 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)
# Description: In short, it's a program to use that good ol' Microsoft Intellimouse Wheel under XFree86.
# URL: http://imwheel.sourceforge.net/
# Maintainer: lealaps, mateusz dot charytoniuk at newride dot tech
# Depends on: xorg-libx11 xorg-libxmu xorg-libxtst
# This is basically a copy of this Arch port, adjusted to work with CRUX:
# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/imwheel
name=imwheel
version=1.0.0pre12
release=1
source=(
https://downloads.sourceforge.net/project/$name/$name-source/$version/$name-$version.tar.gz
etcdir-install.patch
)
build() {
cd $name-$version
patch -p1 -i "$SRC/etcdir-install.patch"
./configure --prefix=/usr --mandir=/usr/share/man
make
make DESTDIR=$PKG install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.