summaryrefslogtreecommitdiff
path: root/dev-libs/libcrossguid/libcrossguid-scm.ebuild
blob: e1042b540c642ef034c40e446d8f40c76050d750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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/"
}