diff --git a/Makefile b/Makefile index 61080a9..f6b71c7 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ clean: rm ${TARGET} install: - install -m 755 ${TARGET} /usr/local/bin/${TARGET} + install -m 755 ${TARGET} ${DESTDIR}/usr/bin/${TARGET} uninstall: - rm -f /usr/local/bin/${TARGET} \ No newline at end of file + rm -f /usr/bin/${TARGET} \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD index b4ad97a..c2aca9a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -11,11 +11,11 @@ source=('git+https://git.arav.top/Arav/kwh-calc.git') md5sums=('SKIP') build() { - cd "$srcdir/$pkgname" + cd "$srcdir/$pkgname-$pkgver" make } package() { - cd "$pkgname" + cd "$pkgname-$pkgver" make DESTDIR="$pkgdir/" install } \ No newline at end of file