diff options
author | Xiretza | 2021-04-24 17:24:55 +0200 |
---|---|---|
committer | Xiretza | 2021-04-24 17:25:25 +0200 |
commit | a165e6c8f9cc1ceab857ec5265b4588c21e71fb0 (patch) | |
tree | af51f6564c7db421495e2d8d28b593b0d7b8d8b0 | |
download | aur-a165e6c8f9cc1ceab857ec5265b4588c21e71fb0.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | 0001-cmake-fix-installation-of-fbs-files.patch | 25 | ||||
-rw-r--r-- | PKGBUILD | 42 |
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8638474364f6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = libsigmf-git + pkgdesc = A header-only C++ library for working with SigMF metadata + pkgver = r13.8ac7dbc + pkgrel = 1 + url = https://github.com/deepsig/libsigmf + arch = any + license = Apache + makedepends = cmake + makedepends = git + makedepends = flatbuffers + makedepends = nlohmann-json + provides = libsigmf + conflicts = libsigmf + source = git+https://github.com/deepsig/libsigmf.git + source = 0001-cmake-fix-installation-of-fbs-files.patch + sha256sums = SKIP + sha256sums = 03012d41f55c1a2f7a61f952c79d14e80bba1f2ee508d77a3d94fe78f3ab394c + +pkgname = libsigmf-git + diff --git a/0001-cmake-fix-installation-of-fbs-files.patch b/0001-cmake-fix-installation-of-fbs-files.patch new file mode 100644 index 000000000000..e89cb6043721 --- /dev/null +++ b/0001-cmake-fix-installation-of-fbs-files.patch @@ -0,0 +1,25 @@ +From 4584e99f26608eec9bdc8262aca377c2da85d256 Mon Sep 17 00:00:00 2001 +From: Xiretza <xiretza@xiretza.xyz> +Date: Sat, 24 Apr 2021 17:19:38 +0200 +Subject: [PATCH] cmake: fix installation of fbs files + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2f58c73..103dbef 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -177,7 +177,7 @@ configure_file( + install( # install flatbuf proto defs + DIRECTORY ${LIBSIGMF_GEN_HEADERS}/ + DESTINATION include/sigmf/fbs +- FILES_MATCHING PATTERN "*.fbs)") ++ FILES_MATCHING PATTERN "*.fbs") + install( # install generated headers + DIRECTORY ${LIBSIGMF_GEN_HEADERS}/ + DESTINATION include/sigmf +-- +2.31.1 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79ff4826f98e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: xiretza <xiretza+aur@xiretza.xyz> +_pkgname=libsigmf +pkgname=$_pkgname-git +pkgver=r13.8ac7dbc +pkgrel=1 +pkgdesc="A header-only C++ library for working with SigMF metadata" +arch=(any) +url="https://github.com/deepsig/libsigmf" +license=('Apache') +depends=() +makedepends=('cmake' 'git' 'flatbuffers' 'nlohmann-json') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("git+$url.git" + "0001-cmake-fix-installation-of-fbs-files.patch" +) +sha256sums=('SKIP' + '03012d41f55c1a2f7a61f952c79d14e80bba1f2ee508d77a3d94fe78f3ab394c') + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$_pkgname" + patch -p1 < "$srcdir/0001-cmake-fix-installation-of-fbs-files.patch" +} + +build() { + cmake -B build -S "$_pkgname" \ + -Wno-dev \ + -DCMAKE_BUILD_TYPE='None' \ + -DUSE_SYSTEM_FLATBUFFERS=ON \ + -DUSE_SYSTEM_JSON=ON \ + -DCMAKE_INSTALL_PREFIX=/usr + make -C build +} + +package() { + make -C build DESTDIR="$pkgdir/" install +} |