26 lines
747 B
Bash
26 lines
747 B
Bash
|
# 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 <gottox@voidlinux.eu>"
|
||
|
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
|
||
|
}
|