2019-12-04 16:00:13 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
2015-08-12 12:09:33 +02:00
|
|
|
|
|
|
|
pkgname=libcrossguid-git
|
2019-12-04 16:00:13 +01:00
|
|
|
pkgver=0.2.2.r52.gca1bf4b
|
2015-08-12 12:09:33 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Lightweight cross platform C++ GUID/UUID library"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://github.com/graeme-hill/crossguid"
|
|
|
|
license=('MIT')
|
2017-06-26 11:32:34 +02:00
|
|
|
makedepends=('git' 'cmake')
|
2015-08-12 12:09:33 +02:00
|
|
|
provides=('libcrossguid')
|
|
|
|
conflicts=('libcrossguid')
|
|
|
|
source=('libcrossguid::git+https://github.com/graeme-hill/crossguid.git')
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir"/libcrossguid
|
2017-06-26 11:32:34 +02:00
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
2015-08-12 12:09:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"/libcrossguid
|
2017-06-26 11:32:34 +02:00
|
|
|
cmake .
|
|
|
|
make
|
2015-08-12 12:09:33 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
check(){
|
|
|
|
cd "$srcdir"/libcrossguid
|
2018-03-23 15:09:16 +01:00
|
|
|
./crossguid-test
|
2015-08-12 12:09:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir"/libcrossguid
|
2018-03-23 15:09:16 +01:00
|
|
|
install -D -m644 libcrossguid.a "${pkgdir}/usr/lib/libcrossguid.a"
|
|
|
|
install -D -m644 include/crossguid/guid.hpp "${pkgdir}/usr/include/guid.hpp"
|
2019-12-04 16:00:13 +01:00
|
|
|
install -D -m644 crossguid.pc "${pkgdir}/usr/lib/pkgconfig/crossguid.pc"
|
2015-08-12 12:09:33 +02:00
|
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|