summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Palenzuela2019-06-28 19:13:49 +0200
committerManuel Palenzuela2019-06-28 19:13:49 +0200
commit1aeef34d0695bdfaba40955b07710e1ca82756da (patch)
treece15c64f5091465ce96ae52766a74088f9f25645
parent49b6a9313b3f5ac0ee5b613c4078f3a9ab5e3485 (diff)
downloadaur-1aeef34d0695bdfaba40955b07710e1ca82756da.tar.gz
Fixed PKGBUILD
-rw-r--r--PKGBUILD16
1 files changed, 8 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f20cb8ef79d..061c8db8ef1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
author=Baitinq
pkgname=smart-wallpaper-git
-pkgbase=smart-wallpaper
+_gitname=smart-wallpaper
pkgver=0
pkgrel=1
pkgdesc='Simple script to set a different wallpaper when its daytime/nightime.'
@@ -14,27 +14,27 @@ optdepends=('geolocate')
makedepends=('git')
provides=('smart-wallpaper')
-source=("git://github.com/$author/$pkgbase.git")
+source=("git://github.com/$author/$_gitname.git")
md5sums=('SKIP')
sha1sums=('SKIP')
sha256sums=('SKIP')
pkgver() {
- cd "$srcdir/$pkgbase"
+ cd "$srcdir/$_gitname"
# Get the version number.
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd "$srcdir/$pkgbase"
+ cd "$srcdir/$_gitname"
# Install the program.
- mkdir -p "$pkgdir/usr/share/$pkgbase"
- install -Dm755 smart-wallpaper "${pkgdir}/usr/bin/$pkgbase"
+ mkdir -p "$pkgdir/usr/share/$_gitname"
+ install -Dm755 smart-wallpaper "${pkgdir}/usr/bin/$_gitname"
chmod +x "$pkgdir/usr/bin/$pkgbase"
- cp -a --no-preserve=ownership * "$pkgdir/usr/share/$pkgbase"
- chmod -R 777 "$pkgdir/usr/share/$pkgbase"
+ cp -a --no-preserve=ownership * "$pkgdir/usr/share/$_gitname"
+ chmod -R 777 "$pkgdir/usr/share/$_gitname"
}