summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Rikhi2017-05-27 19:23:11 -0400
committerPavan Rikhi2017-05-27 19:23:11 -0400
commitc867009b266c41a66d2774716b0b0667e6733f5b (patch)
tree9c94a899f265ab341146c1994481f8b4ec18b202
parentec74761391d2757eb06c454f34fa47ecd0f1797d (diff)
downloadaur-c867009b266c41a66d2774716b0b0667e6733f5b.tar.gz
Add Desktop, MIME, & Logo Files
Also add conflicting packages & remove the stencil collections as optional dependencies(use the built-in collection manager instead).
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD22
-rw-r--r--pencil-mime.xml11
-rw-r--r--pencil.desktop15
4 files changed, 50 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cdf0cfd6b4a..fe7850e1e82 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,22 @@
# Generated by mksrcinfo v8
-# Wed May 24 01:29:54 UTC 2017
+# Sat May 27 23:16:24 UTC 2017
pkgbase = pencil
pkgdesc = Sketching and GUI prototyping/wireframing tool
pkgver = 3.0.2
- pkgrel = 2
+ pkgrel = 3
url = http://github.com/evolus/pencil
arch = any
license = GPL2
depends = nodejs
depends = npm
- optdepends = pencil-android-lollipop-stencils-git: Android UI
- optdepends = pencil-material-icons-git: Material Design Icons
+ conflicts = evolus-pencil-bin
+ conflicts = pencil-v2
source = https://github.com/evolus/pencil/archive/v3.0.2.tar.gz
+ source = pencil.desktop
+ source = pencil-mime.xml
sha256sums = afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc
+ sha256sums = 0aef760218db19f2b2988f0d16c40e2864ad0b06f9959695ace448f409ec1c58
+ sha256sums = 87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc
pkgname = pencil
diff --git a/PKGBUILD b/PKGBUILD
index eb623bca528..7fde4277e71 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,19 @@
# Maintainer: Pavan Rikhi <pavan.rikhi@gmail.com>
pkgname=pencil
pkgver=3.0.2
-pkgrel=2
+pkgrel=3
pkgdesc="Sketching and GUI prototyping/wireframing tool"
arch=('any')
license=('GPL2')
url="http://github.com/evolus/pencil"
-source=("https://github.com/evolus/pencil/archive/v$pkgver.tar.gz")
-sha256sums=('afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc')
+source=("https://github.com/evolus/pencil/archive/v$pkgver.tar.gz"
+ "pencil.desktop"
+ "pencil-mime.xml")
+sha256sums=('afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc'
+ '6d467da74509e74e06325e7464a6a177164ae8977470423da6cae43265dedd4d'
+ '87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc')
+conflicts=('evolus-pencil-bin' 'pencil-v2')
depends=('nodejs' 'npm')
-optdepends=('pencil-android-lollipop-stencils-git: Android UI'
- 'pencil-material-icons-git: Material Design Icons')
package() {
cd "$srcdir/$pkgname-$pkgver"
@@ -18,7 +21,14 @@ package() {
npm install
node_modules/.bin/build --linux dir
- install -d "$pkgdir/usr/share/$pkgname/" "$pkgdir/usr/bin"
+ install -d "$pkgdir/usr/share/$pkgname/" "$pkgdir/usr/bin" \
+ "$pkgdir/usr/share/applications" "$pkgdir/usr/share/mime/packages"
+
cp -r dist/linux-unpacked/* "$pkgdir/usr/share/$pkgname/"
+ cp app/css/images/logo-shadow.png "$pkgdir/usr/share/$pkgname/icon.png"
+
+ cp "$srcdir/pencil.desktop" "$pkgdir/usr/share/applications/"
+ cp "$srcdir/pencil-mime.xml" "$pkgdir/usr/share/mime/packages/"
+
ln -s "/usr/share/$pkgname/pencil" "$pkgdir/usr/bin/"
}
diff --git a/pencil-mime.xml b/pencil-mime.xml
new file mode 100644
index 00000000000..7475a79057e
--- /dev/null
+++ b/pencil-mime.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-evolus-pencil">
+ <comment>Evolus Pencil Document</comment>
+ <icon name="image-x-generic"/>
+ <glob pattern="*.ep"/>
+ <glob pattern="*.epz"/>
+ <glob pattern="*.epgz"/>
+ <sub-class-of type="text/xml"/>
+ </mime-type>
+</mime-info>
diff --git a/pencil.desktop b/pencil.desktop
new file mode 100644
index 00000000000..790293a7939
--- /dev/null
+++ b/pencil.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Pencil
+Comment=Sketching and GUI prototyping tool
+Comment[cs]=Nástroj na kreslení a prototypování GUI
+Comment[el]=Εργαλείο σχεδιασμού και κατασκευής πρωτοτύπων γραφικού περιβάλλοντος διεπαφής χρήστη
+Comment[es]=Herramienta de esbozado y prototipado de interfaces gráficas de usuario
+Comment[vi_VN]=Công cụ phát thảo giao diện Pencil
+Exec=/usr/bin/pencil %f
+Terminal=false
+Type=Application
+StartupNotify=true
+Icon=/usr/share/pencil/icon.png
+Categories=Graphics;2DGraphics;Development;
+MimeType=application/x-evolus-pencil;