summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66bac7e47b9cd10cf544b9bd7497dc1c42fd00c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Filipe Nascimento <flipee at tuta dot io>

pkgname=emulsion
pkgver=4.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=('855dbd2002d9cac35bbb5cbbc28832fb2675ba55a2c146e1ec1da4d518cb08d5'
            '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"
}