From 39441e0b31dfff8d46849adc52bf0c093594975a Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 24 Dec 2021 00:06:54 +0400 Subject: [PATCH] Trying to make PKGBUILD work. --- Makefile | 4 ++-- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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