summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFilipe Nascimento2020-05-02 15:46:09 -0300
committerFilipe Nascimento2020-05-02 15:46:09 -0300
commit68de7387cc9de0c5304fe55a27fe6ee3aa7c0a4f (patch)
tree089d8dcbf1596108ab8ced86931b44d8a187f8d9 /PKGBUILD
downloadaur-68de7387cc9de0c5304fe55a27fe6ee3aa7c0a4f.tar.gz
Initial upload: emulsion 2.0.0-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
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"
+}