Fix Makefile and PKGBUILD for proper installation

This commit is contained in:
Петар Каприш 2021-05-12 22:57:00 +02:00
parent ab81287e27
commit 265f0db2fb
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
}