From 38e4a109b58998f466e7ad9fb7189462d638164e Mon Sep 17 00:00:00 2001 From: kth5 Date: Wed, 17 Jan 2024 10:08:01 +0100 Subject: [PATCH] * add libxsd --- libxsd/.SRCINFO | 12 ++++++++++++ libxsd/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 libxsd/.SRCINFO create mode 100644 libxsd/PKGBUILD diff --git a/libxsd/.SRCINFO b/libxsd/.SRCINFO new file mode 100644 index 0000000000..f714d1df67 --- /dev/null +++ b/libxsd/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = libxsd + pkgdesc = An open-source, cross-platform W3C XML Schema to C++ data binding compiler (runtime library) + pkgver = 4.2.0 + pkgrel = 1 + url = https://www.codesynthesis.com/products/xsd + arch = any + license = GPL2 + makedepends = build2 + source = https://www.codesynthesis.com/download/xsd/4.2/libxsd-4.2.0.tar.gz + sha256sums = 55caf0038603883eb39ac4caeaacda23a09cf81cffc8eb55a854b6b06ef2c52e + +pkgname = libxsd diff --git a/libxsd/PKGBUILD b/libxsd/PKGBUILD new file mode 100644 index 0000000000..198797d946 --- /dev/null +++ b/libxsd/PKGBUILD @@ -0,0 +1,30 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: +# Contributor: kevku + +pkgname=libxsd +pkgver=4.2.0 +pkgrel=1 +pkgdesc='An open-source, cross-platform W3C XML Schema to C++ data binding compiler (runtime library)' +arch=(any) +url='https://www.codesynthesis.com/products/xsd' +license=(GPL2) +makedepends=(build2) +options=(!ccache !distcc) +source=(https://www.codesynthesis.com/download/xsd/${pkgver%.*}/$pkgname-$pkgver.tar.gz) +sha256sums=('55caf0038603883eb39ac4caeaacda23a09cf81cffc8eb55a854b6b06ef2c52e') + +build() { + bpkg create -d build cc \ + config.cxx=g++ \ + config.cc.coptions="${CFLAGS}" + cd build + bpkg add "$srcdir"/$pkgname-$pkgver --type dir + bpkg rep-fetch + bpkg build libxsd +} + +package() { + cd build + bpkg install config.install.root="$pkgdir"/usr libxsd +}