Fix PKGBUILD

This commit is contained in:
Eduard Tolosa 2019-03-27 11:14:08 -05:00
parent ce7bb305dd
commit 1101323b98

View file

@ -2,7 +2,7 @@
pkgname=upcheck
pkgver=0.1.1
pkgrel=2
pkgrel=3
pkgdesc='Checker for ArchLinux available updates and send it via notify-rust.'
arch=('x86_64')
url='https://gitlab.com/edu4rdshl/upcheck'
@ -12,10 +12,10 @@ source=("https://gitlab.com/edu4rdshl/${pkgname}/-/archive/${pkgver}/${pkgname}-
sha512sums=('208443c757528396e82980bf31654f5d1802abcd090422a2ceff7bfbfb512e5173f20e5eca5f0d53b8e38c747b1909940d69970e61b5f894923b02f0cf16b948')
package() {
cd "$pkgname-$pkgver"
install -dm 755 "$pkgdir/usr/lib/systemd/user/"
cd "${pkgname}-${pkgver}"
install -dm 755 "${pkgdir}/usr/lib/systemd/user/"
install -Dm 755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm 755 README.md "$pkgdir/usr/share/doc/$pkgname/README"
cp "$pkgname".{service,timer} "$pkgdir/usr/lib/systemd/user/"
install -Dm 755 bin/"${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm 755 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
cp "${pkgname}".{service,timer} "${pkgdir}/usr/lib/systemd/user/"
}