#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/" }