From fd172c14251856156f7aa7ec66b1f106e04a26f4 Mon Sep 17 00:00:00 2001 From: Ypnose Date: Mon, 12 Aug 2013 19:45:21 +0200 Subject: [PATCH] New package: sxhkd-git-20130812 --- srcpkgs/sxhkd-git/template | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/sxhkd-git/template diff --git a/srcpkgs/sxhkd-git/template b/srcpkgs/sxhkd-git/template new file mode 100644 index 00000000000..d2dd617a96d --- /dev/null +++ b/srcpkgs/sxhkd-git/template @@ -0,0 +1,34 @@ +# Template file for 'sxhkd-git' +pkgname=sxhkd-git +version=20130812 +revision=1 +makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel" +short_desc="Simple X HotKey Daemon" +maintainer="Ypnose " +license="BSD" +homepage="https://github.com/baskerville/sxhkd" + +nofetch=yes +noextract=yes + +do_fetch() { + local url="git://github.com/baskerville/sxhkd" + msg_normal "Fetching source from $url ...\n" + git clone ${url} ${pkgname}-${version} +} + +do_build() { + sed -i 's/LIBS =/LIBS +=/g' Makefile + make CC=$CC INCS="-I." ${makejobs} +} + +do_install() { + make PREFIX=/usr DESTDIR=$DESTDIR install + vinstall LICENSE 644 usr/share/licenses/$pkgname +} + +sxhkd-git_package() { + pkg_install() { + vmove usr + } +}