void-packages/srcpkgs/dclock/template

34 lines
970 B
Bash
Raw Normal View History

2014-07-26 16:02:29 +00:00
# Template file for 'dclock'
pkgname=dclock
version=2.2.2
revision=1
hostmakedepends="pkg-config"
makedepends="libXft-devel libXt-devel"
short_desc="Digital clock for X"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://opencircuitdesign.com/~tim/programs/dclock/"
distfiles="${DEBIAN_SITE}/main/d/${pkgname}/${pkgname}_${version}.orig.tar.gz"
checksum=d14ebc107b4b837ac3ee79ea639c32d7cec658df653687e665979640cd339c3c
post_extract() {
sed -i s/sound/sounds/g Dclock.ad
}
do_build() {
make ${makejobs} -f Makefile.orig \
CC="${CC}" LDFLAGS="${LDFLAGS}" \
CFLAGS="-DXFT_SUPPORT $(pkg-config xft --cflags) ${CFLAGS}" \
LIBS="$(pkg-config xft xt --libs) -lm"
}
do_install() {
vbin dclock
vman dclock.1
vmkdir usr/share/sounds
vinstall sounds/bell.wav 644 usr/share/sounds
vinstall sounds/digital.wav 644 usr/share/sounds
vmkdir usr/share/X11/app-defaults
vinstall Dclock.ad 644 usr/share/X11/app-defaults/Dclock
}