diff options
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | pencil.desktop | 9 | ||||
-rwxr-xr-x | pencil.sh | 4 |
4 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ed4f2024ffb1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +# Generated by mksrcinfo v8 +# Sun Jul 30 16:02:07 UTC 2017 +pkgbase = evolus-pencil-git + pkgdesc = An open-source GUI prototyping tool + pkgver = 1396.3ed2b8a + pkgrel = 1 + url = http://pencil.evolus.vn/ + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = git + makedepends = npm + depends = electron + provides = evolus-pencil-bin + provides = evolus-pencil-avn + conflicts = evolus-pencil-bin + conflicts = evolus-pencil-svn + replaces = evolus-pencil-svn + source = pencil::git+https://github.com/evolus/pencil.git + source = pencil.desktop + source = pencil.sh + md5sums = SKIP + md5sums = 66ca7e3cc83eb681ad89cb2ec80e76b6 + md5sums = e72976807104a384ed291f239df2d77f + +pkgname = evolus-pencil-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..699a088deba3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> +pkgname=evolus-pencil-git +pkgver=1396.3ed2b8a +pkgrel=1 +pkgdesc="An open-source GUI prototyping tool" +arch=('i686' 'x86_64') +url="http://pencil.evolus.vn/" +license=('GPL2') +depends=('electron') +makedepends=('git' 'npm') +provides=('evolus-pencil-bin' 'evolus-pencil-avn') +conflicts=('evolus-pencil-bin' 'evolus-pencil-svn') +replaces=('evolus-pencil-svn') +source=("pencil::git+https://github.com/evolus/pencil.git" + "pencil.desktop" + "pencil.sh") +md5sums=('SKIP' + '66ca7e3cc83eb681ad89cb2ec80e76b6' + 'e72976807104a384ed291f239df2d77f') + +pkgver() { + cd "$srcdir/pencil" + echo $(git rev-list --count master).$(git rev-parse --short master) +} + +build() { + cd "$srcdir/pencil" + npm install --cache "${srcdir}/npm-cache" +} + +package() { + cd "$srcdir/pencil" + + install -d -m755 "$pkgdir/usr/lib" + cp -r app "$pkgdir/usr/lib/pencil" + + install -D -m755 "$srcdir/pencil.sh" "$pkgdir/usr/bin/pencil.sh" + install -D -m644 "$srcdir/pencil.desktop" "$pkgdir/usr/share/applications/pencil.desktop" + for ICON in build/icons/* ; do + install -D -m644 "$ICON" \ + "$pkgdir"/usr/share/icons/hicolor/`basename $ICON .png`/apps/pencil.png + done +} + diff --git a/pencil.desktop b/pencil.desktop new file mode 100644 index 000000000000..4067e2c9ee3e --- /dev/null +++ b/pencil.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Pencil +Comment=An open-source GUI prototyping tool that is available for ALL platforms. +Exec="/usr/bin/pencil.sh" +Terminal=false +Type=Application +Icon=pencil +Categories=Graphics + diff --git a/pencil.sh b/pencil.sh new file mode 100755 index 000000000000..08803a81868d --- /dev/null +++ b/pencil.sh @@ -0,0 +1,4 @@ +#!/usr/bin/sh + +exec /usr/bin/electron /usr/lib/pencil + |