diff options
author | Robin Candau | 2022-07-12 20:39:57 +0200 |
---|---|---|
committer | Robin Candau | 2022-07-12 20:39:57 +0200 |
commit | 0ec8e77915a49fc7ebafbc3fce85221d69fc9148 (patch) | |
tree | 8da0864d4ac86cb6416d3f4fde1cea067723a508 | |
parent | 2ec08e59ab07e1b4484edeb74c64957e33e1d170 (diff) | |
download | aur-0ec8e77915a49fc7ebafbc3fce85221d69fc9148.tar.gz |
Improved the PKGBUILD
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 16 insertions, 17 deletions
@@ -1,7 +1,7 @@ pkgbase = arch-update pkgdesc = A clickeable icon that automatically changes to act as an update notifier/applier pkgver = 1.3.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Antiz96/arch-update arch = any license = GPL3 @@ -9,7 +9,7 @@ pkgbase = arch-update optdepends = yay: AUR support optdepends = paru: AUR support optdepends = libnotify: Desktop notification support - source = https://github.com/Antiz96/arch-update/archive/v1.3.1.tar.gz + source = arch-update-1.3.1.tar.gz::https://github.com/Antiz96/arch-update/archive/v1.3.1.tar.gz sha256sums = 11e4157defd95c5145066037a3c7e0c1974363c467d739915887dde4cd4d30b9 pkgname = arch-update @@ -2,7 +2,7 @@ pkgname=arch-update pkgver=1.3.1 -pkgrel=1 +pkgrel=2 pkgdesc="A clickeable icon that automatically changes to act as an update notifier/applier" arch=('any') url="https://github.com/Antiz96/arch-update" @@ -12,26 +12,25 @@ optdepends=('yay: AUR support' 'paru: AUR support' 'libnotify: Desktop notification support' ) -source=($url/archive/v$pkgver.tar.gz) +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=(11e4157defd95c5145066037a3c7e0c1974363c467d739915887dde4cd4d30b9) package() { - - cd "$srcdir/$pkgname-$pkgver" + cd "${srcdir}/${pkgname}-${pkgver}" - install -Dm 755 "src/bin/$pkgname.sh" "$pkgdir/usr/bin/$pkgname" + install -Dm 755 "src/bin/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" - mkdir -p "$pkgdir/usr/share/icons/$pkgname" - install -Dm 666 "src/icons/$pkgname.svg" "$pkgdir/usr/share/icons/$pkgname/" - install -Dm 666 "src/icons/"$pkgname"_checking.svg" "$pkgdir/usr/share/icons/$pkgname/" - install -Dm 666 "src/icons/"$pkgname"_installing.svg" "$pkgdir/usr/share/icons/$pkgname/" - install -Dm 666 "src/icons/"$pkgname"_up-to-date.svg" "$pkgdir/usr/share/icons/$pkgname/" - install -Dm 666 "src/icons/"$pkgname"_updates-available.svg" "$pkgdir/usr/share/icons/$pkgname/" + mkdir -p "${pkgdir}/usr/share/icons/${pkgname}" + install -Dm 666 "src/icons/${pkgname}.svg" "${pkgdir}/usr/share/icons/${pkgname}/" + install -Dm 666 "src/icons/${pkgname}_checking.svg" "${pkgdir}/usr/share/icons/${pkgname}/" + install -Dm 666 "src/icons/${pkgname}_installing.svg" "${pkgdir}/usr/share/icons/${pkgname}/" + install -Dm 666 "src/icons/${pkgname}_up-to-date.svg" "${pkgdir}/usr/share/icons/${pkgname}/" + install -Dm 666 "src/icons/${pkgname}_updates-available.svg" "${pkgdir}/usr/share/icons/${pkgname}/" - install -Dm 644 "src/desktop/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm 644 "src/desktop/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" - install -Dm 644 "src/systemd/$pkgname.service" "$pkgdir/usr/lib/systemd/user/$pkgname.service" - install -Dm 644 "src/systemd/$pkgname.timer" "$pkgdir/usr/lib/systemd/user/$pkgname.timer" + install -Dm 644 "src/systemd/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" + install -Dm 644 "src/systemd/${pkgname}.timer" "${pkgdir}/usr/lib/systemd/user/${pkgname}.timer" - install -Dm 644 "src/man/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1" + install -Dm 644 "src/man/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" } |