52 lines
1.7 KiB
Bash
52 lines
1.7 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=jhead
|
|
pkgver=3.04
|
|
_debver=$pkgver
|
|
_debrel=6
|
|
pkgrel=1
|
|
pkgdesc="EXIF JPEG info parser and thumbnail remover"
|
|
url='http://www.sentex.net/~mwandel/jhead/'
|
|
arch=('i686' 'x86_64')
|
|
license=('Public-Domain')
|
|
depends=('glibc')
|
|
makedepends=('quilt')
|
|
optdepends=('libjpeg-turbo: to up-right images according to rotation tag')
|
|
source=("${pkgname}-${pkgver}.tar.gz::http://deb.debian.org/debian/pool/main/j/jhead/jhead_${pkgver}.orig.tar.gz"
|
|
"https://deb.debian.org/debian/pool/main/j/jhead/jhead_${_debver}-${_debrel}.debian.tar.xz"
|
|
"fix-build.patch")
|
|
sha512sums=('d783b02059ebcb01845d346e7c48bdc9d9f12fb7b0fd47bf8aff0a85a03f3523fbc536ddab0912f1c56ddb315b6cf31f16d4c7a4f81112d9a4c76a4a57ec1aed'
|
|
'8b4d1f6a066c819ff885d707fbc1dc94f55f919c743f553ec8212800c96055abd68e3f3749db8dbddbca5ec96fb2d928a3ef43ee88caab43067c44e92f5572c5'
|
|
'3261cf164ab275b06601135ed41097e1b3de662d86b7938c8aece7f607035c5aedab4cd16bc5e695dfc8291eb01f02d4079c27335f82820a8c5ce3e41c2d0f65')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
|
# Debian patches
|
|
export QUILT_PATCHES=debian/patches
|
|
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
|
export QUILT_DIFF_ARGS='--no-timestamps'
|
|
|
|
mv "$srcdir"/debian .
|
|
|
|
quilt push -av
|
|
fi
|
|
|
|
# additional patches
|
|
patch -Np1 -i ${srcdir}/fix-build.patch
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
install -Dm755 jhead "${pkgdir}/usr/bin/jhead"
|
|
install -Dm644 jhead.1 "${pkgdir}/usr/share/man/man1/jhead.1"
|
|
install -Dm644 debian/copyright -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|