summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonian Guveli2018-10-28 23:04:55 +0200
committerJonian Guveli2018-10-28 23:04:55 +0200
commit8e8a142748d0603a339f9b5c80b1a7b9c35fcdea (patch)
tree81b9478a70070ba3a0fa31eeb66adf5ae8fe7f92
parentae62ab4b32aea703c71d811123c957e213f941cd (diff)
downloadaur-8e8a142748d0603a339f9b5c80b1a7b9c35fcdea.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 3b80f98135f7..0de49eb0a304 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,7 +9,7 @@ pkgbase = gnome-shell-extension-hotel-manager
depends = curl
provides = gnome-shell-extension-hotel-manager
conflicts = gnome-shell-extension-hotel-manager-git
- source = gnome-shell-extension-hotel-manager-5::https://github.com/hardpixel/hotel-manager/archive/v5.tar.gz
+ source = gnome-shell-extension-hotel-manager-5.tar.gz::https://github.com/hardpixel/hotel-manager/archive/v5.tar.gz
md5sums = 6196c356a15b485a2f0c34a8a8de0425
pkgname = gnome-shell-extension-hotel-manager
diff --git a/PKGBUILD b/PKGBUILD
index 1c2e00b046fe..38a402ed06e3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,12 +9,9 @@ license=("GPL")
depends=("gnome-shell" "curl")
provides=("gnome-shell-extension-hotel-manager")
conflicts=("gnome-shell-extension-hotel-manager-git")
-source=("$pkgname-$pkgver::https://github.com/hardpixel/hotel-manager/archive/v$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=("6196c356a15b485a2f0c34a8a8de0425")
package() {
- mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
-
- cd "$srcdir/hotel-manager-$pkgver"
- cp -af "hotel-manager@hardpixel.eu" "$pkgdir/usr/share/gnome-shell/extensions/"
+ install -d "$pkgdir/usr/share/gnome-shell/extensions" && cp -a "$srcdir/hotel-manager-$pkgver/hotel-manager@hardpixel.eu" "$_"
}