-
Notifications
You must be signed in to change notification settings - Fork 45
/
PKGBUILD
28 lines (26 loc) · 1.05 KB
/
PKGBUILD
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
# Maintainer: Johann Woelper <[email protected]>
pkgname=oculante
pkgver=0.9.1
pkgrel=1
depends=('aom' 'libwebp' 'expat' 'freetype2' 'gtk3' 'cairo')
makedepends=('rust' 'cargo' 'nasm' 'cmake')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="A minimalistic image viewer with analysis and editing tools"
url="https://github.com/woelper/oculante"
source=("$pkgname-$pkgver.tar.gz::https://github.com/woelper/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('SKIP')
license=('MIT')
options=('!lto')
build() {
export RUSTUP_TOOLCHAIN=stable
cd "$srcdir/$pkgname-$pkgver"
cargo build --locked --release
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 target/release/oculante "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 res/icons/icon.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png"
install -Dm644 res/oculante.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}