33 lines
859 B
Plaintext
33 lines
859 B
Plaintext
# Template file for 'comic-git'
|
|
pkgname=comic-git
|
|
version=20141213
|
|
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| -Werror||g' config.mk
|
|
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
|
|
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
|
|
sed -i 's|^CC|#CC|g' config.mk
|
|
}
|
|
|
|
post_install() {
|
|
vinstall LICENSE 644 usr/share/licenses/comic
|
|
}
|