void-packages/srcpkgs/comic-git/template

31 lines
793 B
Plaintext
Raw Normal View History

2014-07-05 22:14:24 +02:00
# Template file for 'comic-git'
pkgname=comic-git
2014-08-03 13:52:58 +02:00
version=20140803
2014-07-05 22:14:24 +02:00
revision=1
hostmakedepends="git"
2014-07-05 22:14:24 +02: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 20:52:36 +02:00
provides="comic-${version}_${revision}"
replaces="comic>=0"
2014-07-05 22:14:24 +02: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 13:52:58 +02: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 22:14:24 +02:00
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/comic
}