summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 597a76a4642f41a00a213af133a7f15907f233e4 (plain)
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
# Maintainer: Frederic Bezies < fredbezies at gmail dot com >
# Contributor: zach <zach {at} zach-adams {dot} com>

pkgname=imgp-git
_pkgname=imgp
pkgver=r257.96269dd
pkgrel=1
pkgdesc="Resize or rotate JPEG and PNG images."
arch=('any')
url="https://github.com/jarun/${_pkgname}"
license=('GPL3')
depends=('python3' 'python-pillow')
makedepends=('git')
source=(${_pkgname}::"git+https://github.com/jarun/${_pkgname}.git")
sha256sums=('SKIP')
conflicts=('imgp')
provides=('imgp')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  make -C "${srcdir}/${_pkgname}" DESTDIR="${pkgdir}" PREFIX="/usr" install
}