Name libxcvt
Description xorg xcvt library and cvt program
Version 0.1.3-r0
Package Base libxcvt
Homepage https://gitlab.freedesktop.org/xorg/lib/libxcvt
Maintainers ['Milan P. Stanić <mps@arvanta.net>']
Contributors ['Milan P. Stanić <mps@arvanta.net>']
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/community/libxcvt
Sources ['https://xorg.freedesktop.org/releases/individual/lib/libxcvt-0.1.3-r0.tar.xz']
Dependencies ['libc.musl-x86_64.so.1']
Optional-Dependencies []
Build-Dependencies ['meson']
Provides ['so:libxcvt.so.0=0.1.3', 'cmd:cvt=0.1.3-r0']
Builddate 19-12-2024 18:05:35
Architecture x86_64
Distro-Version v3.22
Licenses ['custom']
Hash Q1b9d/3tmOaT1dyOwrO4LbvToDXnE=
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=libxcvt
pkgver=0.1.3
pkgrel=0
pkgdesc="xorg xcvt library and cvt program"
url="https://gitlab.freedesktop.org/xorg/lib/libxcvt"
arch="all"
license="custom"
# older xorg-server versions included this package but it has since been split out
# make sure we can upgrade properly to xorg-server 21.1.1 and later
replaces="xorg-server<21.1.1"
makedepends="meson"
subpackages="$pkgname-dev $pkgname-doc"
source="https://xorg.freedesktop.org/releases/individual/lib/libxcvt-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -D -m644 "$srcdir"/$pkgname-$pkgver/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

doc() {
	default_doc

	replaces="xorg-server-doc<21.1.1"
}

sha512sums="
2fecc784375e69b6e8e46608618a5f5a8ad20ecd5229fd093883fe401dd6ea231d8b77c6753756fff01f3040bef2db60a042d40fc349769ef5348e5cd9ed1f28  libxcvt-0.1.3.tar.xz
"