* add libxsd

This commit is contained in:
Alexander Baldeck 2024-01-17 10:08:01 +01:00
parent 4577a600e9
commit 38e4a109b5
2 changed files with 42 additions and 0 deletions

12
libxsd/.SRCINFO Normal file
View File

@ -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

30
libxsd/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer:
# Contributor: kevku <kevku@gmx.com>
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
}