Date: Tuesday, February 23, 2016 @ 20:34:44 Author: idevolder Revision: 163225
archrelease: copy trunk to community-i686, community-x86_64 Added: libcrossguid/repos/community-i686/ libcrossguid/repos/community-i686/PKGBUILD (from rev 163224, libcrossguid/trunk/PKGBUILD) libcrossguid/repos/community-x86_64/ libcrossguid/repos/community-x86_64/PKGBUILD (from rev 163224, libcrossguid/trunk/PKGBUILD) ---------------------------+ community-i686/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) Copied: libcrossguid/repos/community-i686/PKGBUILD (from rev 163224, libcrossguid/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2016-02-23 19:34:44 UTC (rev 163225) @@ -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" +} + Copied: libcrossguid/repos/community-x86_64/PKGBUILD (from rev 163224, libcrossguid/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2016-02-23 19:34:44 UTC (rev 163225) @@ -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" +} +