From 5c9f65e77cc45c3a67fc01c88468660e18e84116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20P=C3=B6tzsch?= Date: Tue, 17 Sep 2024 14:54:47 +0200 Subject: [PATCH 1/2] Add core::hwdata v0.387 --- recipes/core/hwdata.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipes/core/hwdata.yaml diff --git a/recipes/core/hwdata.yaml b/recipes/core/hwdata.yaml new file mode 100644 index 00000000..cc2ca641 --- /dev/null +++ b/recipes/core/hwdata.yaml @@ -0,0 +1,22 @@ +inherit: [cpackage, make, install] + +metaEnvironment: + PKG_VERSION: "0.387" + PKG_LICENSE: "GPL-2.0+, BSD-3-Clause, XFree86 1.0" + +checkoutSCM: + scm: url + url: ${GITHUB_MIRROR}/vcrhonek/hwdata/archive/refs/tags/v${PKG_VERSION}.tar.gz + digestSHA1: 5e368120c7c8095df1dfda9e72d1aad1364ca8e2 + stripComponents: 1 + +buildScript: | + cp -r $1 build + cd build + ./configure \ + --prefix=$BOB_CWD/install/usr \ + --datarootdir=$BOB_CWD/install/usr/share + + makeParallel install + +packageScript: installCopy "$1/install/" From 09a334491c57babf7cc832bf921c48cabd8144e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20P=C3=B6tzsch?= Date: Tue, 17 Sep 2024 14:55:48 +0200 Subject: [PATCH 2/2] Add core::tz v2024b --- recipes/core/tz.yaml | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 recipes/core/tz.yaml diff --git a/recipes/core/tz.yaml b/recipes/core/tz.yaml new file mode 100644 index 00000000..85c72a1e --- /dev/null +++ b/recipes/core/tz.yaml @@ -0,0 +1,61 @@ +inherit: [make, install] + +metaEnvironment: + PKG_VERSION: "2024b" + PKG_LICENSE: "Public domain" + +checkoutSCM: + - scm: url + url: https://www.iana.org/time-zones/repository/releases/tzcode${PKG_VERSION}.tar.gz + digestSHA1: 95cfb1106f60e925f0255d340350ba4be51b9b29 + dir: src + - scm: url + url: https://www.iana.org/time-zones/repository/releases/tzdata${PKG_VERSION}.tar.gz + digestSHA1: 52adf39a4b3c29502866167e78b89b20fd08dc3e + dir: data + +multiPackage: + "data": + depends: + - tools: + target-toolchain: host-compat-toolchain + depends: + - name: core::tz-zic + use: [tools] + buildTools: [zic] + buildScript: | + for z in africa antarctica asia australasia europe northamerica \ + southamerica etcetera backward factory; do + zic -b fat -d build/posix $1/data/$z + zic -b fat -d build/right -L $1/data/leapseconds $1/data/$z + done; + + mkdir -p install/usr/share/zoneinfo + cp -a build/* $1/data/*.tab $1/data/leap-seconds.list \ + install/usr/share/zoneinfo + pushd install/usr/share/zoneinfo + for z in posix/*; do + ln -sfn "${z}" "${z##*/}" + done + popd + + packageScript: | + installPackageBin $1/install/ + + "zic": + buildTools: [target-toolchain] + buildVars: [CC, AR] + buildScript: | + mkdir -p build + cp -r $1/data/* build/ + cp -r $1/src/* build/ + makeParallel CC=$CC -C build \ + zic + mkdir -p install/usr/sbin + cp build/zic install/usr/sbin/zic + + packageScript: | + installPackageBin $1/install/ + + provideTools: + zic: "usr/sbin"