[arch-commits] Commit in cereal/repos/community-any (PKGBUILD PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Fri Jan 21 10:49:26 UTC 2022
Date: Friday, January 21, 2022 @ 10:49:25
Author: alucryd
Revision: 1111965
archrelease: copy trunk to community-any
Added:
cereal/repos/community-any/PKGBUILD
(from rev 1111964, cereal/trunk/PKGBUILD)
Deleted:
cereal/repos/community-any/PKGBUILD
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 41 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-21 10:49:20 UTC (rev 1111964)
+++ PKGBUILD 2022-01-21 10:49:25 UTC (rev 1111965)
@@ -1,34 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-pkgname=cereal
-pkgver=1.3.0
-pkgrel=1
-pkgdesc="C++11 library for serialization"
-arch=(any)
-url="https://github.com/USCiLab/cereal"
-license=(BSD)
-makedepends=(boost cmake git)
-_tag=34eb6f6bd6783018354c7043d5d6aa2eec4e4dbe # git rev-parse v${pkgver}
-source=(git+https://github.com/USCiLab/cereal.git#tag=${_tag})
-sha256sums=(SKIP)
-
-prepare() {
- mkdir -p build
-}
-
-build() {
- cd build
-
- cmake ../${pkgname} \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DSKIP_PORTABILITY_TEST=ON \
- -DTHREAD_SAFE=ON \
- -DWITH_WERROR=OFF
- make
-}
-
-package() {
- make DESTDIR="${pkgdir}" -C build install
- install -Dm644 ${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}
Copied: cereal/repos/community-any/PKGBUILD (from rev 1111964, cereal/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-21 10:49:25 UTC (rev 1111965)
@@ -0,0 +1,41 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=cereal
+pkgver=1.3.1
+pkgrel=1
+pkgdesc='C++11 library for serialization'
+arch=(any)
+url=https://github.com/USCiLab/cereal
+license=(BSD)
+makedepends=(
+ boost
+ cmake
+ git
+ ninja
+)
+_tag=1de8fe89471d69ea392ea260ce74e079d5f4b415
+source=(git+https://github.com/USCiLab/cereal.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+ cd cereal
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cmake -S cereal -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE='' \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSKIP_PORTABILITY_TEST=ON \
+ -DTHREAD_SAFE=ON \
+ -DWITH_WERROR=OFF
+ cmake --build build
+}
+
+package() {
+ DESTDIR="${pkgdir}" cmake --install build
+ install -Dm644 ${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list