summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Nascimento2020-05-02 15:46:09 -0300
committerFilipe Nascimento2020-05-02 15:46:09 -0300
commit68de7387cc9de0c5304fe55a27fe6ee3aa7c0a4f (patch)
tree089d8dcbf1596108ab8ced86931b44d8a187f8d9
downloadaur-68de7387cc9de0c5304fe55a27fe6ee3aa7c0a4f.tar.gz
Initial upload: emulsion 2.0.0-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD29
-rwxr-xr-xemulsion.desktop9
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5bcd8445bc6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = emulsion
+ pkgdesc = A fast and minimalistic image viewer
+ pkgver = 2.0.0
+ pkgrel = 1
+ url = https://github.com/ArturKovacs/emulsion
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = rust
+ depends = gcc-libs
+ depends = hicolor-icon-theme
+ source = emulsion-2.0.0.tar.gz::https://github.com/ArturKovacs/emulsion/archive/v2.0.tar.gz
+ source = emulsion.desktop
+ sha256sums = c184ee6b1dd4c1db62527ae17c5ea405dd7fc89d5bac61e6419743c4e701609f
+ sha256sums = 7003f0a26dec380e22b2f0fedd044e266663f5a49e2557d6e4dc738933561e40
+
+pkgname = emulsion
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dacd11c1696
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Filipe Nascimento <flipee at tuta dot io>
+
+pkgname=emulsion
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="A fast and minimalistic image viewer"
+arch=('i686' 'x86_64')
+url="https://github.com/ArturKovacs/emulsion"
+license=('MIT')
+depends=('gcc-libs' 'hicolor-icon-theme')
+makedepends=('rust')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver%.*}.tar.gz"
+ "emulsion.desktop")
+sha256sums=('c184ee6b1dd4c1db62527ae17c5ea405dd7fc89d5bac61e6419743c4e701609f'
+ '7003f0a26dec380e22b2f0fedd044e266663f5a49e2557d6e4dc738933561e40')
+
+build() {
+ cd $pkgname-${pkgver%.*}
+ cargo build --release --locked --no-default-features
+}
+
+package() {
+ install -Dm644 $pkgname.desktop -t "$pkgdir/usr/share/applications"
+
+ cd $pkgname-${pkgver%.*}
+ install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 resource_dev/emulsion.svg -t "$pkgdir/usr/share/icons/hicolor/scalable/apps"
+}
diff --git a/emulsion.desktop b/emulsion.desktop
new file mode 100755
index 00000000000..7b25c6baf73
--- /dev/null
+++ b/emulsion.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Emulsion
+Comment=A fast and minimalistic image viewer
+Exec=emulsion %U
+Terminal=false
+Icon=emulsion
+Type=Application
+Categories=Graphics;Viewer;Photography;
+MimeType=inode/directory;image/gif;image/jpeg;image/png;image/bmp;image/x-eps;image/x-icns;image/x-ico;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/tiff;image/x-psd;image/x-webp;image/webp;image/x-tga;application/x-krita;image/x-kde-raw;image/x-canon-cr2;image/x-canon-crw;image/x-kodak-dcr;image/x-adobe-dng;image/x-kodak-k25;image/x-kodak-kdc;image/x-minolta-mrw;image/x-nikon-nef;image/x-olympus-orf;image/x-pentax-pef;image/x-fuji-raf;image/x-panasonic-rw;image/x-sony-sr2;image/x-sony-srf;image/x-sigma-x3f;image/x-sony-arw;image/x-panasonic-rw2;