pkgs/expat/PKGBUILD

31 lines
653 B
Text
Raw Normal View History

2023-12-05 04:47:04 +00:00
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=expat
pkgver=2.5.0
pkgrel=1
pkgdesc="An XML parser library"
2023-12-08 02:05:38 +00:00
arch=("x86_64")
2023-12-05 04:47:04 +00:00
url="https://libexpat.github.io/"
2023-12-08 02:05:38 +00:00
license=("MIT")
2023-12-11 13:18:00 +00:00
makedepends=("cmake" "ninja")
2023-12-08 02:05:38 +00:00
source=("https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/$pkgname-$pkgver.tar.bz2")
sha256sums=("6f0e6e01f7b30025fa05c85fdad1e5d0ec7fd35d9f61b22f34998de11969ff67")
2023-12-05 04:47:04 +00:00
build() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
2023-12-11 13:18:00 +00:00
-DCMAKE_INSTALL_LIBDIR=lib \
2023-12-08 02:05:38 +00:00
-DCMAKE_BUILD_TYPE=Release \
-B build
ninja -C build
2023-12-05 04:47:04 +00:00
}
package() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
DESTDIR=$pkgdir ninja -C build install
2023-12-05 04:47:04 +00:00
}