From ce7bb305ddb34f13dbeb233bc862013d1197585f Mon Sep 17 00:00:00 2001 From: Eduard Toloza Date: Wed, 27 Mar 2019 10:29:43 -0500 Subject: [PATCH] Remove install file and fix PKGBUILD style. --- archlinux/PKGBUILD | 17 +++++++---------- archlinux/upcheck.install | 3 --- 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 archlinux/upcheck.install diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD index bde229d..365183b 100644 --- a/archlinux/PKGBUILD +++ b/archlinux/PKGBUILD @@ -1,24 +1,21 @@ -# Maintainer: Eduard Toloza edu4rdshl@securityhacklabs.net +# Maintainer: Eduard Toloza pkgname=upcheck pkgver=0.1.1 -pkgrel=1 +pkgrel=2 pkgdesc='Checker for ArchLinux available updates and send it via notify-rust.' arch=('x86_64') -url="https://gitlab.com/edu4rdshl/upcheck" +url='https://gitlab.com/edu4rdshl/upcheck' license=('GPL3') depends=('pacman-contrib') -source=("https://gitlab.com/edu4rdshl/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz" - "$pkgname.install") -sha512sums=('208443c757528396e82980bf31654f5d1802abcd090422a2ceff7bfbfb512e5173f20e5eca5f0d53b8e38c747b1909940d69970e61b5f894923b02f0cf16b948' - 'SKIP') -install="$pkgname.install" +source=("https://gitlab.com/edu4rdshl/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('208443c757528396e82980bf31654f5d1802abcd090422a2ceff7bfbfb512e5173f20e5eca5f0d53b8e38c747b1909940d69970e61b5f894923b02f0cf16b948') package() { - cd $pkgname-$pkgver + 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/" + cp "$pkgname".{service,timer} "$pkgdir/usr/lib/systemd/user/" } diff --git a/archlinux/upcheck.install b/archlinux/upcheck.install deleted file mode 100644 index d18e306..0000000 --- a/archlinux/upcheck.install +++ /dev/null @@ -1,3 +0,0 @@ -post_install () { - echo ">> To get upcheck working automatically, you need to enable the upcheck.timer unit via systemd." -}