* add libxsd-frontend

This commit is contained in:
Alexander Baldeck 2024-01-17 09:56:20 +01:00
parent 22b982c9c6
commit 7ef4444aea
2 changed files with 53 additions and 0 deletions

16
libxsd-frontend/.SRCINFO Normal file
View File

@ -0,0 +1,16 @@
pkgbase = libxsd-frontend
pkgdesc = A compiler frontend for the W3C XML Schema definition language
pkgver = 2.1.0
pkgrel = 2
url = https://www.codesynthesis.com/projects/libxsd-frontend/
arch = x86_64
license = MIT
makedepends = build2
depends = gcc-libs
depends = glibc
depends = libcutl
depends = xerces-c
source = https://www.codesynthesis.com/download/xsd/4.2/libxsd-frontend-2.1.0.tar.gz
sha256sums = 98321b9c2307d7c4e1eba49da6a522ffa81bdf61f7e3605e469aa85bfcab90b1
pkgname = libxsd-frontend

37
libxsd-frontend/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer:
pkgname=libxsd-frontend
pkgver=2.1.0
_xsdver=4.2
pkgrel=2
pkgdesc='A compiler frontend for the W3C XML Schema definition language'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://www.codesynthesis.com/projects/libxsd-frontend/'
license=(MIT)
depends=(gcc-libs
glibc
libcutl
xerces-c)
makedepends=(build2)
options=(!ccache !distcc)
source=(https://www.codesynthesis.com/download/xsd/$_xsdver/$pkgname-$pkgver.tar.gz)
sha256sums=('98321b9c2307d7c4e1eba49da6a522ffa81bdf61f7e3605e469aa85bfcab90b1')
build() {
bpkg create -d build cc \
config.cxx=g++ \
config.cc.coptions="${CXXFLAGS} ${LDFLAGS}"
cd build
bpkg add "$srcdir"/$pkgname-$pkgver --type dir
bpkg rep-fetch
bpkg build libxsd-frontend ?sys:libxerces-c/* ?sys:libcutl/*
}
package() {
cd build
bpkg install config.install.root="$pkgdir"/usr libxsd-frontend
rm "$pkgdir"/usr/lib/pkgconfig/libxsd-frontend.static.pc
install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}