summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5238bc17b77b1fe008b844a81967be34fe20fc8a (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
33
34
35
36
37
38
# shellcheck shell=bash
# shellcheck disable=SC2034,SC2148,SC2154
# Co-Maintainer: Daemon Lee Schmidt <DaemonLeeSchmidt@gmail.com>
# Maintainer: Zoey Mertes <zmertes@zmertes.net>
pkgname=fargo-git
pkgver=r21.37103cf
pkgrel=1
pkgdesc="Removes unseeable and ghost alpha from PNG images."
arch=('i686' 'x86_64')
url="https://github.com/DaemonLee/fargo"
license=('GPL3')
groups=()
depends=('libvips')
makedepends=('git' 'perl')
provides=("${pkgname%-VCS}")
conflicts=("${pkgname%-VCS}")
replaces=()
backup=()
options=()
install=
source=('fargo::git+https://github.com/DaemonLee/fargo')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}" || exit
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}" || exit
	make
}

package() {
	cd "$srcdir/${pkgname%-git}" || exit
	make DESTDIR="$pkgdir/" install
}