grabc: update to 1.0.2

This commit is contained in:
a dinosaur 2021-01-13 22:07:34 +11:00 committed by Duncan Overbruck
parent 6057dbf485
commit e10b377c58

View file

@ -1,20 +1,26 @@
# Template file for 'grabc'
pkgname=grabc
version=1.1
reverts=1.1_1
version=1.0.2
revision=1
wrksrc="${pkgname}${version}"
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
build_style=gnu-makefile
makedepends="libX11-devel"
short_desc="Identify color of a pixel on the screen"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2"
license="MIT"
homepage="http://www.muquit.com/muquit/software/grabc/grabc.html"
distfiles="http://www.muquit.com/muquit/software/grabc/grabc${version}.tar.gz"
checksum=f0492a8ea33b46a16bdb94644420f54724e31c4436e4cd77937a30b2de3bb00e
# Remove the license file on next version bump as it will be included.
distfiles="https://github.com/muquit/grabc/archive/v${version}.tar.gz
https://raw.githubusercontent.com/muquit/grabc/b9e4316/LICENSE.txt"
checksum="a3e4d2e5b11ef63e8928a630418fc8dfe1327585adc48aef8d0f13b2d78d5ea0
9691605fc9d14f0924faf49367189f9c5bc50e4872987b637b18db77960b1536"
pre_build() {
sed -i -e 's|$(LIBS)|$(LDFLAGS) -lX11|' Makefile
vsed -e 's|/usr/local|/usr|' -i Makefile
}
do_install() {
vbin grabc
post_install() {
vlicense ../LICENSE.txt
}