From 31b59cee86954c1ea46e924b6a96cca5172cf0de Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 26 Jul 2014 18:02:29 +0200 Subject: [PATCH] New package: dclock-2.2.2 --- srcpkgs/dclock/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/dclock/template diff --git a/srcpkgs/dclock/template b/srcpkgs/dclock/template new file mode 100644 index 00000000000..538d35902f5 --- /dev/null +++ b/srcpkgs/dclock/template @@ -0,0 +1,33 @@ +# 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 " +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 +}