summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJonian Guveli2018-10-28 21:36:18 +0200
committerJonian Guveli2018-10-28 21:36:18 +0200
commit609d56a2336ac15cd2ba04831d7cf25ed53bdee0 (patch)
tree0322faa916b59546882ba585fbf1a16c388d71fd /PKGBUILD
parent75f1fe7872cb6bf2ba786e9e593d8ced35190c11 (diff)
downloadaur-sopcast-launcher.tar.gz
optimize install
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 6 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 23d7e2d6762..285d4c6bf25 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,18 +10,17 @@ depends=("python-psutil" "python-notify2" "sopcast")
optdepends=("vlc")
makedepends=("desktop-file-utils")
provides=("sopcast-launcher")
-source=("$pkgname-$pkgver::https://github.com/jonian/sopcast-launcher/archive/v$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=("0eb32ee8d45d67bdd40e21c388733a86")
package() {
- mkdir -p "$pkgdir/opt"
- mkdir -p "$pkgdir/usr/bin"
- mkdir -p "$pkgdir/usr/share/applications"
+ install -d "$pkgdir/opt"
+ install -d "$pkgdir/usr/bin"
+ install -d "$pkgdir/usr/share/applications"
cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/opt/$pkgname"
+ ln -s "/opt/$pkgname/sopcast_launcher.py" "$pkgdir/usr/bin/sopcast-launcher"
+ mv -n "$pkgdir/opt/$pkgname/sopcast-launcher.desktop" "$pkgdir/usr/share/applications/sopcast-launcher.desktop"
update-desktop-database "$pkgdir/opt/$pkgname"
-
- ln -s "/opt/$pkgname/sopcast_launcher.py" "$pkgdir/usr/bin/sopcast-launcher"
- mv "$pkgdir/opt/$pkgname/sopcast-launcher.desktop" "$pkgdir/usr/share/applications/sopcast-launcher.desktop"
}