void-packages/srcpkgs/splix-svn/template

29 lines
865 B
Bash

# Template file for 'splix-svn'
pkgname=splix-svn
_svnrev=315
version=r$_svnrev
revision=2
build_style=gnu-makefile
hostmakedepends="subversion"
makedepends="cups-devel mit-krb5-devel jbigkit-devel"
short_desc="CUPS driver for SPL printers (Samsung and several Xerox printers)"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://splix.ap2c.org"
CXXFLAGS=" -fno-strict-aliasing"
do_fetch() {
svn checkout svn://svn.code.sf.net/p/splix/code/splix@$_svnrev $pkgname-$version
}
do_build() {
make CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="true" drv
make CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="true" all DRV_ONLY=1
}
do_install() {
make STRIP=true PREFIX=/usr DESTDIR="${DESTDIR}" install DRV_ONLY=1
}