Trying to make PKGBUILD work.

This commit is contained in:
Alexander Andreev 2021-12-24 00:06:54 +04:00
parent f225af0bb1
commit 39441e0b31
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
2 changed files with 4 additions and 4 deletions

View File

@ -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}
rm -f /usr/bin/${TARGET}

View File

@ -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
}