void-packages/srcpkgs/comic-git/template
2014-08-03 13:52:58 +02:00

30 lines
793 B
Text

# Template file for 'comic-git'
pkgname=comic-git
version=20140803
revision=1
hostmakedepends="git"
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"
provides="comic-${version}_${revision}"
replaces="comic>=0"
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
sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/comic
}