aports/testing/wiringx/APKBUILD
2025-03-03 16:05:33 +00:00

42 lines
1.4 KiB
Text

# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=wiringx
pkgver=0_git20240317
_commitid=a6bb3092d262f9801a685a4591eff937fbd4a403
pkgrel=2
pkgdesc="modular approach to several GPIO interfaces"
url="https://github.com/wiringX/wiringX"
arch="aarch64 armv7 armhf riscv64"
license="MPL-2.0"
options="!check" # no testsuite
makedepends="cmake linux-headers"
subpackages="$pkgname-dev"
source="wiringx-$pkgver.tar.gz::https://github.com/wiringX/wiringX/archive/$_commitid.tar.gz
fix_time_t.patch
gcc14.patch
"
builddir="$srcdir/"wiringX-$_commitid
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
$CMAKE_CROSSOPTS .
make
}
package() {
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/sbin
}
sha512sums="
79e0509eb37c659c695168b324a6fafebe0493d7bf559c6d20cf395ff14379c0abae5fdb3347c34acdac6bb81a1e912a418b6b51159b58ee213e81fe33293cf1 wiringx-0_git20240317.tar.gz
b7751f0396fb90a5550a064006eb5f75ff5835a9e0c7b419abfdb2ec42313ab4bd6365874415a41f4f2cf6e9c778eec72b317e14dfbc439216e21c6bc4f73294 fix_time_t.patch
6cae2b3d96125accaf70be70db7c7c5b3b3c1de36b7bf0750abd0e655fcb2bb7cccc19afc4ac0feb744cd317d2813026aa32af5f6e384a885c897be36078bd1f gcc14.patch
"