summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorM0Rf302018-06-21 10:00:23 +0200
committerM0Rf302018-06-21 10:00:23 +0200
commitad8db5d980806f9d1328ec1b18660551941e84a9 (patch)
tree4bdf0a6e5360f496e97006a33c6b5c20a03baf7e
parente07b826e26ef65ede5abbaea0c790c53be94bbb6 (diff)
downloadaur-ad8db5d980806f9d1328ec1b18660551941e84a9.tar.gz
zerynth-studio: 2.1.1
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD52
2 files changed, 33 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f0b364fd861..11a43968ec3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
-# Generated by mksrcinfo v8
-# Sat Mar 18 12:02:00 UTC 2017
pkgbase = zerynth-studio
pkgdesc = A powerful IDE for embedded programming in Python that enables the IoT
- pkgver = 2
+ pkgver = 2.1.1
pkgrel = 1
url = https://www.zerynth.com/zerynth-studio/
arch = x86_64
license = COMMERCIAL
+ depends = gconf
+ depends = libxss
+ noextract = zerynth.tar.xz
+ options = !strip
source = http://download.zerynth.com/installer/zerynth.tar.xz
source = zerynth-studio.sh
source = zerynth-studio.desktop
diff --git a/PKGBUILD b/PKGBUILD
index cdf50048fa5..5328d7e2232 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,42 @@
# Maintainer: robertfoster
pkgname=zerynth-studio
-pkgver=2
+_archivename=${pkgname%%-studio}.tar.xz
+pkgver=2.1.1
pkgrel=1
pkgdesc="A powerful IDE for embedded programming in Python that enables the IoT"
arch=('x86_64')
url="https://www.zerynth.com/zerynth-studio/"
license=('COMMERCIAL')
-depends=()
-optdepends=()
-source=("http://download.zerynth.com/installer/zerynth.tar.xz"
- "$pkgname.sh"
- "$pkgname.desktop")
+depends=('gconf' 'libxss')
+options=(!strip)
+source=("http://download.zerynth.com/installer/${_archivename}"
+ "$pkgname.sh"
+"$pkgname.desktop")
+noextract=("${_archivename}")
package() {
- cd "$srcdir"
- rm zerynth.tar.xz
+ cd "$srcdir"
+ msg2 "Extracting..."
+ install -d "$pkgdir/opt/$pkgname"
+ install -d $pkgdir/usr/share/pixmaps
+ tar xvf ${_archivename} --overwrite -C "$pkgdir/opt/$pkgname"
+ msg2 "Desktop stuff..."
+ install -D "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+ mv "$pkgdir/opt/$pkgname/img/android-icon-192x192.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ chmod +x "$pkgdir/opt/$pkgname/zerynth"
+ chmod +44 -R "$pkgdir/opt/$pkgname/"
- install -D "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
- install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
-
- for _i in 36 48 192; do
- install -Dm644 img/android-icon-${_i}x${_i}.png \
- "$pkgdir/usr/share/icons/hicolor/${_i}x${_i}/apps/$pkgname.png"
- done
-
- install -d "$pkgdir/opt/zerynth-studio"
- rm $pkgname.{sh,desktop}
- rm -r xz/{windows64,mac}
- cp -r * "$pkgdir/opt/$pkgname"
- chmod +x "$pkgdir/opt/$pkgname/zerynth"
- chmod +44 -R "$pkgdir/opt/$pkgname/"
+ msg2 "Cleaning..."
+ find "$pkgdir" -type d -name "*.exe" -prune -exec rm -r '{}' \;
+ find "$pkgdir" -type d -name "*.dll" -prune -exec rm -r '{}' \;
+ find "$pkgdir" -type d -name "windows64" -prune -exec rm -r '{}' \;
+ find "$pkgdir" -type d -name "mac" -prune -exec rm -r '{}' \;
+ chmod +x "$pkgdir/opt/$pkgname/zerynth"
+ chmod +44 -R "$pkgdir/opt/$pkgname/"
}
md5sums=('SKIP'
- '566bd15aa6acedd409673ab634ab1148'
- '6cc82b387ddbee922b8e246efa5a6b97')
+ '566bd15aa6acedd409673ab634ab1148'
+'6cc82b387ddbee922b8e246efa5a6b97')