summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de43f7899c6a6ad1f04a78d33614fe1b891ce643 (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
39
40
41
42
43
44
45
# Maintainer: Alfred Jophy alfredjophy <at> protonmail <dot> com
# Maintainer: Cullen Ross <cullenrss at gmail.com>
# Contributer: Alexis ViguiƩ <net at siphonay.fr>
_name=farge
pkgname="${_name}-git"
pkgver=r56.eadb483
pkgrel=2
pkgdesc="Click on a pixel on your screen and show its color value"
arch=('any')
url="https://github.com/sdushantha/${_name}"
license=('MIT')
depends=('bash' 'imagemagick' 'feh' )
makedepends=('git')
optdepends=('mpv: alternative image viewer'
			'sxiv: alternate image viewer'
			'colorpicker-ym1234-git: for X11 support'
			'wl-clipboard: for wayland support'
			'grim: for wayland support'
			'slurp: for wayland support'
			)
provides=("${_name}")
conflicts=("${_name}")
source=("${_name}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "${srcdir}/${_name}"
}

build() {
	cd "${srcdir}/${_name}"
	chmod 755 "${_name}"
}

package() {
	cd "${srcdir}/${_name}"
	mkdir -p "${pkgdir}/usr/bin"
	make DEST=${pkgdir}/usr/bin install
    install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}