fork/oculante
git clone https://git.julia.blue/fork/oculante
ebed9a3
0.8.23
1# Maintainer: Johann Woelper <woelper@gmail.com> 2pkgname=oculante 3pkgver=$$VERSION$$ 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}