From 4f780556315ab760264ae95acde24cea98f9be85 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 17 Mar 2016 07:43:27 +0100 Subject: [PATCH] New package: crossguid-0.0.20160317 --- srcpkgs/crossguid/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/crossguid/template diff --git a/srcpkgs/crossguid/template b/srcpkgs/crossguid/template new file mode 100644 index 00000000000..6753fe49109 --- /dev/null +++ b/srcpkgs/crossguid/template @@ -0,0 +1,25 @@ +# Template file for 'crossguid' +pkgname=crossguid +version=0.0.20160317 +revision=1 +_githash="8f399e8bd4252be9952f3dfa8199924cc8487ca4" +_gitshort="${_githash:0:7}" +short_desc="Lightweight cross platform C++ GUID/UUID library (git $_gitshort)" +maintainer="Enno Boland " +license="GPL-3" +homepage="https://github.com/graeme-hill/crossguid" +distfiles="$homepage/archive/$_githash.tar.gz" +makedepends="libuuid-devel" +checksum=022c9f02cc36e865cd8fd0111a597ff2bd91988deeb348dbe2aba64aed1abd99 +wrksrc=$pkgname-$_githash + +do_build() { + $CXX -c guid.cpp -o guid.o $CXXFLAGS -std=c++11 -DGUID_LIBUUID + ar rvs libcrossguid.a guid.o +} + +do_install() { + vlicense LICENSE + vinstall libcrossguid.a 644 usr/lib + vinstall guid.h 644 usr/include +}