summaryrefslogtreecommitdiffstats
path: root/abs/extra/libcrossguid/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-05-16 16:24:28 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-05-16 16:24:28 (GMT)
commitfff4c50d3a1d94c807604d6c21355993dfb95c85 (patch)
tree390f0eb0781b2599449edbdafbeb6aaba34200dc /abs/extra/libcrossguid/PKGBUILD
parent8de064f6e96f960cdbfe6868d9957a4613f704df (diff)
parent6f7a84649ef75069cc4fa06fabeb63e762e049d1 (diff)
downloadlinhes_pkgbuild-fff4c50d3a1d94c807604d6c21355993dfb95c85.zip
linhes_pkgbuild-fff4c50d3a1d94c807604d6c21355993dfb95c85.tar.gz
linhes_pkgbuild-fff4c50d3a1d94c807604d6c21355993dfb95c85.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/extra/libcrossguid/PKGBUILD')
-rw-r--r--abs/extra/libcrossguid/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/abs/extra/libcrossguid/PKGBUILD b/abs/extra/libcrossguid/PKGBUILD
new file mode 100644
index 0000000..aff05a7
--- /dev/null
+++ b/abs/extra/libcrossguid/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: BlackEagle <ike DOT devolder AT gmail DOT com>
+
+pkgname=libcrossguid
+_gitname=libcrossguid
+_commit=8f399e8
+pkgver=20150803.$_commit
+pkgrel=1
+pkgdesc="Lightweight cross platform C++ GUID/UUID library"
+arch=('i686' 'x86_64')
+url="https://github.com/graeme-hill/crossguid"
+license=('MIT')
+makedepends=('git')
+provides=('libcrossguid')
+conflicts=('libcrossguid')
+source=("$_gitname::git+https://github.com/graeme-hill/crossguid.git#commit=$_commit")
+md5sums=('SKIP')
+
+build() {
+ cd libcrossguid
+
+ g++ -c guid.cpp -o guid.o $CXXFLAGS -std=c++11 -DGUID_LIBUUID
+ ar rvs libcrossguid.a guid.o
+
+ g++ -c test.cpp -o test.o $CXXFLAGS -std=c++11
+ g++ -c testmain.cpp -o testmain.o $CXXFLAGS
+ g++ test.o guid.o testmain.o -o test $CXXFLAGS -luuid
+ chmod +x test
+}
+
+check(){
+ cd libcrossguid
+ ./test
+}
+
+package() {
+ cd libcrossguid
+ install -D -m644 libcrossguid.a "${pkgdir}/usr/lib/libcrossguid.a"
+ install -D -m644 guid.h "${pkgdir}/usr/include/guid.h"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+