Package Details: mousemode-git 1.0.r26.d28ca67-1

Git Clone URL: https://aur.archlinux.org/mousemode-git.git (read-only, click to copy)
Package Base: mousemode-git
Description: An intuitive, home-row mouse replacement
Upstream URL: https://github.com/randoragon/mousemode
Keywords: keyboard mouse utility
Licenses: MIT
Provides: mousemode
Submitter: randoragon
Maintainer: randoragon
Last Packager: randoragon
Votes: 1
Popularity: 0.013345
First Submitted: 2020-09-20 17:19 (UTC)
Last Updated: 2024-05-29 22:25 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

orchasi commented on 2024-06-28 08:06 (UTC)

@randoragon I did a fresh clone, again I get the same *.o missing prompt but with makepkg -e -si I was able to build and install

randoragon commented on 2024-05-29 22:37 (UTC)

@orchasi Sorry for the delayed response. clean all is not a mistake -- it tells make to first run the clean target, then the all target. I wrote it like this to force a clean build every time the install target is run. To be absolutely sure this is not causing the problem, you could remove clean and rerun makepkg -si, but I doubt it will make a difference.

Today I bumped the package to eliminate a deprecated function call that was causing a compilation error for me. I believe this is unrelated to your problem, but if you could let me know if the issue persists, I would be grateful. Once again, I am unable to reproduce it, either when cloning & running make, or using makepkg -si, or using a 3rd party AUR helper like yay...

orchasi commented on 2024-04-21 18:51 (UTC) (edited on 2024-04-21 18:54 (UTC) by orchasi)

@randoragon I'm using a gnu make and running makepkg -si, it's your makefile it has clean all line in install that's removing *.o

randoragon commented on 2024-04-21 18:42 (UTC)

@orchasi By the looks if it, the make DESTDIR="$pkgdir/" PREFIX=/usr install command does not trigger the %.o: %.c target for mousemode.o. But I can't reproduce this, running make install works as expected for me, and so does a clean reinstall of the package through yay. Are you using a non-GNU make by any chance?

orchasi commented on 2024-04-21 18:27 (UTC) (edited on 2024-04-21 18:49 (UTC) by orchasi)

it works fine but something misplaced in PKGBUILD

==> Starting package()...
rm -f *.o
gcc -std=c99 -O3 -lX11 -lXtst mousemode.o -o mousemode
/usr/bin/ld: cannot find mousemode.o: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: main] Error 1
==> ERROR: A failure occurred in package().
    Aborting...

this is due to

install: CFLAGS += -O3
install: clean all
        @mkdir -p -- $(DESTDIR)$(PREFIX)
        cp -- $(OUT) $(DESTDIR)$(PREFIX)/bin

clean all in makefile