Initial commit (v0.5.0)

This commit is contained in:
Rasmus Karlsson 2026-02-07 12:52:59 +01:00
commit a7638715e2
2 changed files with 46 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = pajlada-settings
pkgdesc = C++ Settings library
pkgver = 0.5.0
pkgrel = 1
url = https://github.com/pajlada/settings
arch = any
license = MIT
makedepends = git
makedepends = cmake
makedepends = gtest
makedepends = rapidjson
makedepends = pajlada-serialize
makedepends = pajlada-signals
source = git+https://github.com/pajlada/settings.git#tag=v0.5.0
sha256sums = 4ce5aadc3990c4fadec519d4ce9dc8ccf4c73e5dbbb9b135949c0ea6fb0c9c5e
pkgname = pajlada-settings

29
PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
pkgname=pajlada-settings
pkgver=0.5.0
pkgrel=1
pkgdesc='C++ Settings library'
arch=('any')
url=https://github.com/pajlada/settings
license=('MIT')
makedepends=('git' 'cmake' 'gtest' 'rapidjson' 'pajlada-serialize' 'pajlada-signals')
source=("git+https://github.com/pajlada/settings.git#tag=v${pkgver}")
sha256sums=('4ce5aadc3990c4fadec519d4ce9dc8ccf4c73e5dbbb9b135949c0ea6fb0c9c5e')
build() {
cmake -S settings \
-B build \
--fresh \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="${pkgdir}" cmake --install build
install -Dm644 settings/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}