diff options
author | Stoppedpuma | 2025-03-18 13:21:23 +0100 |
---|---|---|
committer | Stoppedpuma | 2025-03-18 13:21:23 +0100 |
commit | 880ed8809b2d01e1ab219b6f0a3f8a6a2e6d88ec (patch) | |
tree | 06805d6b99de038c52e40a587f7a714972c8a3a3 | |
download | aur-880ed8809b2d01e1ab219b6f0a3f8a6a2e6d88ec.tar.gz |
Create oculante-git AUR package
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c30345578a16 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = oculante-git + pkgdesc = A minimalistic image viewer with analysis and editing tools + pkgver = 0.9.2.r82.g5bbb3d4e + pkgrel = 1 + url = https://github.com/woelper/oculante + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = MIT + makedepends = rust + makedepends = cargo + makedepends = nasm + makedepends = cmake + depends = aom + depends = libwebp + depends = expat + depends = freetype2 + depends = gtk3 + depends = cairo + depends = libheif + depends = libjpeg-turbo + provides = oculante-git + conflicts = oculante + source = git+https://github.com/woelper/oculante + sha512sums = SKIP + +pkgname = oculante-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..97b3b6c5e9fb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: puma <58333920+Stoppedpuma@users.noreply.github.com> + +_pkgname=oculante +pkgname=oculante-git +pkgver=0.9.2.r82.g5bbb3d4e +pkgrel=1 +depends=('aom' 'libwebp' 'expat' 'freetype2' 'gtk3' 'cairo' 'libheif' 'libjpeg-turbo') +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=("git+https://github.com/woelper/oculante") +sha512sums=('SKIP') +license=('MIT') +provides=("${pkgname}") +conflicts=("${_pkgname}") + +pkgver () { + cd "${srcdir}/oculante" + git describe --long --tags --abbrev=8 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/oculante" + + cargo build --release --no-default-features --features notan/shaderc --features jxlcms --features dav1d --features j2k --features heif --features turbo +} + +package() { + cd "$srcdir/oculante" + install -Dm755 target/release/oculante "${pkgdir}/usr/bin/${_pkgname}" + install -Dm644 res/icons/icon.png "${pkgdir}/usr/share/icons/hicolor/256x256/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}" +} |