summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Rikhi2017-05-23 16:24:21 -0400
committerPavan Rikhi2017-05-23 16:24:21 -0400
commit096bd0264190648de7e4c6188802e0d8a5e69ac5 (patch)
tree10b7a8f00c57a3bd278d7e3096d1663259a27dad
parent0b058a51c195ac69b615ec553a826d67e17c44c6 (diff)
downloadaur-096bd0264190648de7e4c6188802e0d8a5e69ac5.tar.gz
Switch to Evolus' Repository, Update to v3.0.2
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD23
-rw-r--r--pencil.install7
3 files changed, 20 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d934afd260c..54c2d6847c3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
# Generated by mksrcinfo v8
-# Sun Nov 20 17:46:38 UTC 2016
+# Tue May 23 20:23:34 UTC 2017
pkgbase = pencil
pkgdesc = Sketching and GUI prototyping/wireframing tool
- pkgver = 2.0.21
+ pkgver = 3.0.2
pkgrel = 1
- url = http://github.com/prikhi/pencil
- install = pencil.install
+ url = http://github.com/evolus/pencil
arch = any
license = GPL2
- depends = xulrunner
+ depends = nodejs
+ depends = npm
optdepends = pencil-android-lollipop-stencils-git: Android UI
optdepends = pencil-material-icons-git: Material Design Icons
- source = https://github.com/prikhi/pencil/releases/download/v2.0.21/Pencil-2.0.21-linux-pkg.tar.gz
- sha256sums = 788e46b0c08d445da77a3f83bcd40e13e3f30bc5ade3935270ff1d8f3f7b0377
+ source = https://github.com/evolus/pencil/archive/v3.0.2.tar.gz
+ sha256sums = afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc
pkgname = pencil
diff --git a/PKGBUILD b/PKGBUILD
index 5a80a9a4536..6e30433e293 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,24 @@
# Maintainer: Pavan Rikhi <pavan.rikhi@gmail.com>
pkgname=pencil
-pkgver=2.0.21
+pkgver=3.0.2
pkgrel=1
pkgdesc="Sketching and GUI prototyping/wireframing tool"
arch=('any')
license=('GPL2')
-url="http://github.com/prikhi/pencil"
-install='pencil.install'
-
-source=("https://github.com/prikhi/pencil/releases/download/v$pkgver/Pencil-$pkgver-linux-pkg.tar.gz")
-sha256sums=('788e46b0c08d445da77a3f83bcd40e13e3f30bc5ade3935270ff1d8f3f7b0377')
-depends=('xulrunner')
+url="http://github.com/evolus/pencil"
+source=("https://github.com/evolus/pencil/archive/v$pkgver.tar.gz")
+sha256sums=('afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc')
+depends=('nodejs' 'npm')
optdepends=('pencil-android-lollipop-stencils-git: Android UI'
'pencil-material-icons-git: Material Design Icons')
package() {
- cp -dr "$srcdir/evolus-pencil/usr" "$pkgdir"
- # fix permissions of directories
- chmod -R a+rX "$pkgdir"/*
+ cd "$srcdir/$pkgname-$pkgver"
+
+ npm install
+ node_modules/.bin/build --linux dir
+
+ install -d "$pkgdir/usr/share/$pkgname/" "$pkgdir/usr/bin"
+ cp -r dist/linux-unpacked/* "$pkgdir/usr/share/$pkgname/"
+ ln -s "$pkgdir/usr/share/$pkgname/pencil" "$pkgdir/usr/bin"
}
diff --git a/pencil.install b/pencil.install
deleted file mode 100644
index bcb3e47864e..00000000000
--- a/pencil.install
+++ /dev/null
@@ -1,7 +0,0 @@
-post_install() {
- update-desktop-database -q
-}
-
-post_remove() {
- post_install $1
-}