summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a336839fa0c..a5de2abde57 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgbase=webstorm
pkgname=(webstorm webstorm-jre)
-pkgver=2019.2.2
+pkgver=2019.2.2b192.6603.19
_pkgver=192.6603.19
pkgrel=1
pkgdesc='JavaScript IDE and HTML editor.'
@@ -13,11 +13,15 @@ url='https://www.jetbrains.com/webstorm/'
license=('Commercial')
makedepends=('rsync')
options=('!strip')
-source=(https://download.jetbrains.com/webstorm/WebStorm-${pkgver}.tar.gz
+source=(https://download.jetbrains.com/webstorm/WebStorm-${pkgver%b*}.tar.gz
jetbrains-webstorm.desktop)
sha512sums=('6131f6311171971b3dc2d05c0cad7d114cb68f7880089db8a706c690f5dab4ffb673c8b964b87d3c227d4c8db904a9a653c568a193ba36736b5c6d78b88c64da'
'3635b8b6787aae583742e95de7d26d0f80b857f48143898e5963f219d1d4ec8b4cb8e37ce3f058324bb5a253b883c2610be848e883576896c67030e9a36be7e6')
+pkgver() {
+ echo "${pkgver%b*}b$(find ${srcdir} -maxdepth 1 -type d -printf "%P" | cut -d "-" -f2)"
+}
+
package_webstorm() {
optdepends=('webstorm-jre: JetBrains custom Java Runtime (Recommended)'
'java-runtime: JRE - Required if webstorm-jre is not installed'
@@ -28,7 +32,7 @@ package_webstorm() {
install -d -m 755 "${pkgdir}/usr/share/applications/"
install -d -m 755 "${pkgdir}/usr/share/pixmaps/"
- rsync -rtl "${srcdir}/WebStorm-${_pkgver}/" "${pkgdir}/opt/${pkgbase}" --exclude=/jbr
+ rsync -rtl "${srcdir}/WebStorm-${pkgver#*b}/" "${pkgdir}/opt/${pkgbase}" --exclude=/jbr
ln -s "/opt/${pkgbase}/bin/${pkgbase}.sh" "${pkgdir}/usr/bin/${pkgbase}"
install -D -m 644 "${srcdir}/jetbrains-${pkgbase}.desktop" "${pkgdir}/usr/share/applications/"
@@ -37,5 +41,5 @@ package_webstorm() {
package_webstorm-jre() {
install -d -m 755 "${pkgdir}/opt/${pkgbase}"
- rsync -rtl "${srcdir}/WebStorm-${_pkgver}/jbr" "${pkgdir}/opt/${pkgbase}"
+ rsync -rtl "${srcdir}/WebStorm-${pkgver#*b}/jbr" "${pkgdir}/opt/${pkgbase}"
}