jobextra/feh/PKGBUILD

55 lines
1.6 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=feh
pkgver=3.9
pkgrel=01
pkgdesc='Fast and light imlib2-based image viewer'
url='https://feh.finalrewind.org/'
arch=('x86_64')
#depends=('imlib2' 'curl' 'libxinerama' 'libexif')
depends=('curl' 'file' 'imlib2' 'libexif' 'libxinerama')
optdepends=('imagemagick: support more file formats'
'jpegexiforient: set exif rotation tag')
makedepends=('libxt')
source=(${url}$pkgname-$pkgver.tar.bz2{,.asc})
# '0001-libmagic.patch')
#prepare() {
# cd "${srcdir}/${pkgname}-${pkgver}"
# patch -Np1 < ../0001-libmagic.patch
#}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make PREFIX=/usr \
exif=1 \
help=1 \
inotify=1 \
magic=1 \
stat64=1
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
#---- license gpg-key sha256sums ----
license=('custom:MIT')
validpgpkeys=('781BB7071C6BF648EAEB08A1100D5BFB5166E005')
sha256sums=(8649962c41d2c7ec4cc3f438eb327638a1820ad5a66df6a9995964601ae6bca0 # feh-3.9.tar.bz2
f8b7366c2175c53e581059a06d04cb484419dd8e499136127b7564c8b446a996) # feh-3.9.tar.bz2.asc
# cc2c7ca77c710001339cceb78225119e910bc6949ab2a3380b90caf84c0d3e41) # 0001-libmagic.patch