libcbor 0.11.0-1
This commit is contained in:
commit
503a6f5b50
39
PKGBUILD
Normal file
39
PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||||||
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||||||
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||||||
|
# then please put 'unknown'.
|
||||||
|
|
||||||
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||||
|
pkgname=libcbor
|
||||||
|
pkgver=0.11.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="C library for parsing and generating CBOR, the general-purpose schema-less binary data format"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/PJK/libcbor"
|
||||||
|
license=('MIT')
|
||||||
|
depends=('glibc')
|
||||||
|
makedepends=('cmake' 'cmocka')
|
||||||
|
source=(https://github.com/PJK/libcbor/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
||||||
|
sha256sums=(89e0a83d16993ce50651a7501355453f5250e8729dfc8d4a251a78ea23bb26d7)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
|
cmake -Bbuild \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=lib64 \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_C_FLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DWITH_TESTS=1
|
||||||
|
|
||||||
|
make -C build VERBOSE=1
|
||||||
|
make -C build/test VERBOSE=1
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
|
DESTDIR=${pkgdir} cmake --install build
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user