summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ae058e93dbf201882f7b59e5d9593a9f8c08f2e (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
27
28
29
30
31
32
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
pkgname='farbfeld-resize-git'
pkgdesc='Farbfeld image resizing filter'
pkgver=r6.ac511a5
pkgrel=2
license=('Custom')
depends=('glibc')
arch=('i686' 'x86_64')
url='https://github.com/ender672/farbfeld-resize'
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')

pkgver () {
	cd "${pkgname}"
	(
		set -o pipefail
		git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
		printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

build () {
	cd "${pkgname}"
	make
}

package () {
	cd "${pkgname}"
	install -Dm755 resize    "${pkgdir}/usr/bin/ffresize"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
	install -Dm644 LICENSE   "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}