Merge branch 'master' into 'master'

Fix Makefile and PKGBUILD for proper installation

See merge request vojjvoda/fetchy!2
This commit is contained in:
Јован Ђокић-Шумарац 2021-05-12 23:52:46 +00:00
commit 6b6c3bf0d2
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
}