Add 'libcrossguid-git/' from commit '35f281a412b123c9eadfe6075e3ad94c9c160704'

git-subtree-dir: libcrossguid-git
git-subtree-mainline: 6de2fa2ef2
git-subtree-split: 35f281a412
This commit is contained in:
Cedric Girard 2019-02-14 15:26:21 +01:00
commit 423a90f4c5
2 changed files with 57 additions and 0 deletions

17
libcrossguid-git/.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = libcrossguid-git
pkgdesc = Lightweight cross platform C++ GUID/UUID library
pkgver = 0.2.2.r15.g7a42917
pkgrel = 1
url = https://github.com/graeme-hill/crossguid
arch = i686
arch = x86_64
license = MIT
makedepends = git
makedepends = cmake
provides = libcrossguid
conflicts = libcrossguid
source = libcrossguid::git+https://github.com/graeme-hill/crossguid.git
md5sums = SKIP
pkgname = libcrossguid-git

40
libcrossguid-git/PKGBUILD Normal file
View file

@ -0,0 +1,40 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
pkgname=libcrossguid-git
pkgver=0.2.2.r15.g7a42917
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' 'cmake')
provides=('libcrossguid')
conflicts=('libcrossguid')
source=('libcrossguid::git+https://github.com/graeme-hill/crossguid.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir"/libcrossguid
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir"/libcrossguid
cmake .
make
}
check(){
cd "$srcdir"/libcrossguid
./crossguid-test
}
package() {
cd "$srcdir"/libcrossguid
install -D -m644 libcrossguid.a "${pkgdir}/usr/lib/libcrossguid.a"
install -D -m644 include/crossguid/guid.hpp "${pkgdir}/usr/include/guid.hpp"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et: