void-packages/srcpkgs/dclock/template

34 lines
967 B
Bash

# Template file for 'dclock'
pkgname=dclock
version=2.2.2
revision=3
hostmakedepends="pkg-config"
makedepends="libXft-devel libXt-devel"
short_desc="Digital clock for X"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
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
}