summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e8bb370f8c24bb8c7ef9dc6163a8c9478799c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Kevin Gravier<kevin@mrkmg.com>
pkgname=nativescript-sidekick
pkgver=1.19.1.v.2019.8.1.2
pkgrel=2
pkgdesc="NativeScript Sidekick is a desktop GUI that enhances the power of the NativeScript CLI and simplifies the development of mobile applications. It is designed to be a companion that complements your code editor, source control, and any other tools you use."
arch=('x86_64')
url="https://www.nativescript.org"
license=('custom')
groups=('')
depends=('desktop-file-utils' 'gconf' 'hicolor-icon-theme' 'libappindicator-gtk2' 'libnotify' 'libxtst' 'nss')
options=('!strip' '!emptydirs')
install=${pkgname}.install
source_x86_64=("$pkgname-$pkgver.deb::https://sk-cdn.nativescript.cloud/fusion/1.19.1-v.2019.8.1.2/linux/NativeScriptSidekick__amd64.deb"
		       "launcher1.patch")
sha512sums_x86_64=('44f0880b475efd84adec246dbf72c4f4a8ce2b623c63ad97c7734809649e37b335cd556722c3aaacdc278ac1b734361a38ac2b9d279afb65fe050df60eddecf8'
                   '52421ed9086bf3eb511ed36856f27a7d2122b6add3ef69f9562a7c11b4a2f3d960f4ab809eae93915151e27f88898dc1e6292451fdc1891b67bbc81c637a3017')

package() {
	tar xf data.tar.xz -C "${pkgdir}"
	mv "${pkgdir}/opt/NativeScript Sidekick" "${pkgdir}/opt/NativeScriptSidekick"
	mv "${pkgdir}/opt/NativeScriptSidekick/NativeScript Sidekick" "${pkgdir}/opt/NativeScriptSidekick/NativeScriptSidekick"
	mv "${pkgdir}/usr/share/applications/NativeScript Sidekick.desktop" "${pkgdir}/usr/share/applications/NativeScriptSidekick.desktop"
	patch "${pkgdir}/usr/share/applications/NativeScriptSidekick.desktop" < launcher1.patch
	find "${pkgdir}/usr/share/icons/hicolor" -type f -name 'NativeScript Sidekick.png' | while IFS= read -r f; do mv -i "$f" "$(dirname "$f")/NativeScriptSidekick.png" ; done
	install -d "${pkgdir}/${pkgname}/opt"
	install -d "${pkgdir}/${pkgname}/usr/share"
}