commit 61f36e8cb5d15ccc6121b9e7070371b998b77095 Author: Cedric Girard Date: Wed Aug 12 12:09:33 2015 +0200 first package version diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9fa7bbb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = libcrossguid-git + pkgdesc = Lightweight cross platform C++ GUID/UUID library + pkgver = r35.8f399e8 + pkgrel = 1 + url = https://github.com/graeme-hill/crossguid + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + provides = libcrossguid + conflicts = libcrossguid + source = libcrossguid::git+https://github.com/graeme-hill/crossguid.git + md5sums = SKIP + +pkgname = libcrossguid-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..af72eb4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Cedric Girard + +pkgname=libcrossguid-git +pkgver=r35.8f399e8 +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=('libcrossguid::git+https://github.com/graeme-hill/crossguid.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir"/libcrossguid + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir"/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 "$srcdir"/libcrossguid + ./test +} + +package() { + cd "$srcdir"/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" +} + +# vim:set ts=2 sw=2 et: