void-packages/srcpkgs/comic-git/template

31 lines
793 B
Text
Raw Normal View History

2014-07-05 20:14:24 +00:00
# Template file for 'comic-git'
pkgname=comic-git
2014-08-03 11:52:58 +00:00
version=20140803
2014-07-05 20:14:24 +00:00
revision=1
hostmakedepends="git"
2014-07-05 20:14:24 +00:00
makedepends="libX11-devel libjpeg-turbo-devel"
build_style=gnu-makefile
short_desc="Minimalistic image viewer for Linux"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="https://github.com/yjh0502/comic"
2014-07-06 18:52:36 +00:00
provides="comic-${version}_${revision}"
replaces="comic>=0"
2014-07-05 20:14:24 +00:00
do_fetch() {
local url="git://github.com/yjh0502/comic"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
pre_build() {
sed -i 's| -I/usr/include||g' config.mk
2014-08-03 11:52:58 +00:00
sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
2014-07-05 20:14:24 +00:00
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/comic
}