summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5fa89c664a0f20b82535169fb4e0aff4cd2ec52 (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
# Maintainer: Mehmet Ümit Özden <ozdenmehmetumit@gmail.com>
pkgname=colpick
pkgver=1.5.0.r1.g39feef2
pkgrel=1
pkgdesc="Pick color at the current position of the mouse"
arch=(any)
url="https://github.com/mehmetumit/colpick.git"
license=('GPL3')
makedepends=('git')
depends=('imagemagick' 'scrot' 'xdotool')
optdepends=('xclip' 'notification-daemon')
source=("git+$url")
md5sums=('SKIP')

pkgver() {
	cd "${pkgname}"
	printf "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}

package() {
	cd "${pkgname}"
	make PREFIX="/usr/local/" TARGET_FILE="${pkgname}" install
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}