fork/oculante

git clone https://git.julia.blue/fork/oculante

Johann WoelperRelease version 0.8.22530d941

0.8.22
1.0 KiB28 linesraw
1# Maintainer: Johann Woelper <woelper@gmail.com>
2pkgname=oculante
3pkgver=0.8.22
4pkgrel=1
5depends=('aom' 'libwebp' 'expat' 'freetype2' 'gtk3' 'cairo')
6makedepends=('rust' 'cargo' 'nasm' 'cmake')
7arch=('i686' 'x86_64' 'armv6h' 'armv7h')
8pkgdesc="A minimalistic image viewer with analysis and editing tools"
9url="https://github.com/woelper/oculante"
10source=("$pkgname-$pkgver.tar.gz::https://github.com/woelper/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
11sha512sums=('SKIP')
12license=('MIT')
13options=('!lto')
14
15build() {
16    export RUSTUP_TOOLCHAIN=stable
17    cd "$srcdir/$pkgname-$pkgver"
18    cargo build --locked --release
19}
20
21package() {
22    cd "$srcdir/$pkgname-$pkgver"
23    install -Dm755 target/release/oculante "${pkgdir}/usr/bin/${pkgname}"
24	install -Dm644 res/oculante.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png"
25	install -Dm644 res/oculante.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
26	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
27    install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
28}