Package Details: mousemode-git 1.0.r23.aa3aed0-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.92
First Submitted: 2020-09-20 17:19 (UTC)
Last Updated: 2021-04-16 13:03 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

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