summaryrefslogtreecommitdiff
path: root/dev-libs/libcrossguid/libcrossguid-scm.ebuild
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2015-08-19 13:15:04 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2015-08-19 13:15:04 +0300
commit75e2d4d54bc254c2c4826d9bb2932f790a8823c5 (patch)
tree09031f044b8bac47fc3b25f1bf211aa2c97ce1ef /dev-libs/libcrossguid/libcrossguid-scm.ebuild
parent2f0f70ceab3739326cf09f04d7f111f335dda3d9 (diff)
libcrossguid from aur (required at least for kodi-scm)
Diffstat (limited to 'dev-libs/libcrossguid/libcrossguid-scm.ebuild')
-rw-r--r--dev-libs/libcrossguid/libcrossguid-scm.ebuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-libs/libcrossguid/libcrossguid-scm.ebuild b/dev-libs/libcrossguid/libcrossguid-scm.ebuild
new file mode 100644
index 0000000..e1042b5
--- /dev/null
+++ b/dev-libs/libcrossguid/libcrossguid-scm.ebuild
@@ -0,0 +1,32 @@
+#copypast from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libcrossguid-git
+
+EAPI=5
+
+inherit base eutils git-r3
+
+DESCRIPTION="Lightweight cross platform C++ GUID/UUID library"
+HOMEPAGE="https://github.com/graeme-hill/crossguid"
+SRC_URI=""
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+
+EGIT_REPO_URI="https://github.com/graeme-hill/crossguid.git"
+
+src_unpack() {
+ git-r3_src_unpack
+}
+
+src_compile() {
+ cd "${S}"
+ g++ -c guid.cpp -o guid.o -std=c++11 -DGUID_LIBUUID
+ ar rvs libcrossguid.a guid.o
+}
+
+src_install() {
+#TODO: multilib
+ mkdir -p "${D}/usr/lib"
+ cp "${S}/libcrossguid.a" "${D}/usr/lib"
+ mkdir -p "${D}/usr/include/"
+ cp "${S}/guid.h" "${D}/usr/include/"
+}