summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordavedatum2019-10-31 22:26:16 +0000
committerdavedatum2019-10-31 22:26:16 +0000
commit54ddf89bb62235b5eb27b55b8b0195607e5d5b21 (patch)
treed295f0bfefd4cc22247892900891dab3a1798803
downloadaur-54ddf89bb62235b5eb27b55b8b0195607e5d5b21.tar.gz
init import
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore9
-rw-r--r--PKGBUILD48
-rw-r--r--imagine.desktop9
-rw-r--r--imagine.install7
-rwxr-xr-ximagine.sh4
6 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..77c3f1d0e37
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = imagine-git
+ pkgdesc = PNG/JPEG optimization app
+ pkgver = v0.5.0.r1.gf68ae12
+ pkgrel = 1
+ url = https://github.com/meowtec/Imagine
+ install = imagine.install
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = npm
+ depends = electron2
+ depends = imagemagick
+ provides = imagine-git
+ conflicts = imagine-git
+ source = imagine::git+https://github.com/meowtec/Imagine.git
+ source = imagine.sh
+ source = imagine.desktop
+ source = imagine.install
+ md5sums = SKIP
+ md5sums = e7577f322638f548ea42e7e1c9cd77d8
+ md5sums = 7f80869e29fd5af22e4c303f9a10975f
+ md5sums = 671bee3aec8f7e0a0556ee8d336c604d
+
+pkgname = imagine-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..26219acd05d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+*
+
+!imagine.desktop
+!imagine.install
+!imagine.sh
+!PKGBUILD
+!.SRCINFO
+!.gitignore
+!.git \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..233049f1ba5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: davedatum <ask at davedatum dot com>
+
+pkgname=imagine-git
+_pkgname=imagine
+pkgver=v0.5.0.r1.gf68ae12
+pkgrel=1
+pkgdesc="PNG/JPEG optimization app"
+arch=("x86_64")
+url="https://github.com/meowtec/Imagine"
+license=("MIT")
+depends=("electron2" "imagemagick")
+makedepends=("git" "npm")
+provides=("$pkgname")
+conflicts=("$pkgname")
+install=$_pkgname.install
+source=("$_pkgname::git+$url.git"
+ "$_pkgname.sh"
+ "$_pkgname.desktop"
+ "$_pkgname.install")
+md5sums=('SKIP'
+ 'e7577f322638f548ea42e7e1c9cd77d8'
+ '7f80869e29fd5af22e4c303f9a10975f'
+ '671bee3aec8f7e0a0556ee8d336c604d')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ npm install && npm run pack
+}
+
+package() {
+ install -Dm755 "$srcdir/$_pkgname/dist/linux-unpacked/resources/app.asar" "$pkgdir/opt/$_pkgname/app.asar"
+ install -Dm644 "$srcdir/$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
+ install -Dm644 "$srcdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
+
+ install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
+ do
+ install -dm755 "$pkgdir/usr/share/icons/hicolor/$_size/apps"
+ convert "$srcdir/$_pkgname/build/icon.png" \
+ -resize "$_size" "$pkgdir/usr/share/icons/hicolor/$_size/apps/$_pkgname.png"
+ done
+} \ No newline at end of file
diff --git a/imagine.desktop b/imagine.desktop
new file mode 100644
index 00000000000..b5e26fad7bb
--- /dev/null
+++ b/imagine.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Imagine
+Comment=PNG/JPEG optimization app
+Exec=/usr/bin/imagine
+Terminal=false
+Type=Application
+Icon=imagine
+StartupWMClass=Imagine
+Categories=Graphics; \ No newline at end of file
diff --git a/imagine.install b/imagine.install
new file mode 100644
index 00000000000..7d3b993137d
--- /dev/null
+++ b/imagine.install
@@ -0,0 +1,7 @@
+post_install() {
+ chmod +x /usr/bin/imagine
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/imagine.sh b/imagine.sh
new file mode 100755
index 00000000000..db014b31dd8
--- /dev/null
+++ b/imagine.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# Launch application
+exec electron2 /opt/imagine/app.asar "$@" \ No newline at end of file