jobcore/expat/PKGBUILD-arch
2024-09-04 22:29:18 +03:00

46 lines
1.4 KiB
Text

# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=expat
pkgver=2.6.3
pkgrel=2
pkgdesc="An XML parser library"
arch=(x86_64)
url="https://libexpat.github.io/"
_url="https://github.com/libexpat/libexpat"
license=(MIT)
depends=(glibc)
makedepends=(
cmake
git
)
provides=(libexpat.so)
source=($pkgname::git+$_url?signed#tag=R_${pkgver//./_})
sha512sums=('d4845acf87f1b14a5bedeac8effbc4d292f7a1fafa28ea3159f74ccaeef19af3ad48a0398367c2a6e45b9a151c3c3f59b462922d5a615846ab11b9a144b09e91')
b2sums=('57bb71f8ad2211127281d22ffebdb1cb1b023081eb83eca2843c9e6b99d3ad4570cc885889a9d80c90c4a8e9c8d5331c04b4f61e711bb0546cb4234636255106')
validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping
build() {
local cmake_options=(
-B build
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-S $pkgname/$pkgname
-W no-dev
)
cmake "${cmake_options[@]}"
cmake --build build --verbose
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -vDm 644 $pkgname/$pkgname/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
install -vDm 644 $pkgname/$pkgname/{AUTHORS,Changes,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
}