summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonian Guveli2018-10-28 23:01:50 +0200
committerJonian Guveli2018-10-28 23:01:50 +0200
commit9d39c83e93693c1c9dfcb9d381e1f286752e6e29 (patch)
treedce3da2a7ffbed7eb82f424a7fdff0eac3e6c526
parent692efc38d9e089bbe2aaa94abb15cf6a87210951 (diff)
downloadaur-9d39c83e93693c1c9dfcb9d381e1f286752e6e29.tar.gz
optimize install
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 3 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d07ff2bbabea..4ddb9bc3081c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,7 +10,7 @@ pkgbase = gnome-shell-extension-unite
optdepends = gnome-shell-extension-dash-to-dock
provides = gnome-shell-extension-unite
conflicts = gnome-shell-extension-unite-git
- source = gnome-shell-extension-unite-21::https://github.com/hardpixel/unite-shell/archive/v21.tar.gz
+ source = gnome-shell-extension-unite-21.tar.gz::https://github.com/hardpixel/unite-shell/archive/v21.tar.gz
md5sums = 3c200249db02a56c98d116849589962f
pkgname = gnome-shell-extension-unite
diff --git a/PKGBUILD b/PKGBUILD
index 867e3d53ef10..6f8ab7f2f0df 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,12 +10,9 @@ depends=("gnome-shell" "xorg-xprop")
optdepends=("gnome-shell-extension-dash-to-dock")
provides=("gnome-shell-extension-unite")
conflicts=("gnome-shell-extension-unite-git")
-source=("$pkgname-$pkgver::https://github.com/hardpixel/unite-shell/archive/v$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=("3c200249db02a56c98d116849589962f")
package() {
- mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
-
- cd "$srcdir/unite-shell-$pkgver"
- cp -af "unite@hardpixel.eu" "$pkgdir/usr/share/gnome-shell/extensions/"
+ install -d "$pkgdir/usr/share/gnome-shell/extensions" && cp -a "$srcdir/unite-shell-$pkgver/unite@hardpixel.eu" "$_"
}