Fix Makefile and PKGBUILD for proper installation #3

Merged
tvrdosrz merged 1 commit from master into master 2021-05-13 01:52:46 +02:00
2 changed files with 5 additions and 11 deletions

View file

@ -12,11 +12,11 @@ clean:
-rm -f fetchy
install: all
mkdir -p $(PREFIX)/bin
cp -f fetchy $(PREFIX)/bin
chmod 755 $(PREFIX)/bin/fetchy
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f fetchy $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/fetchy
uninstall:
-rm -f $(PREFIX)/bin/fetchy
-rm -f $(DESTDIR)$(PREFIX)/bin/fetchy
.PHONY: all install uninstall clean

View file

@ -27,15 +27,9 @@ validpgpkeys=()
build() {
cd fetchy
make
}
package() {
cd fetchy
mkdir -p ${pkgdir}/opt/${pkgname}
cp -rf * ${pkgdir}/opt/${pkgname}
make install
make DESTDIR="$pkgdir" PREFIX="/usr" install
}