28 lines
592 B
Bash
28 lines
592 B
Bash
# Maintainer: Daryl Ronningen <relms@relms.dev>
|
|
|
|
pkgname=expat
|
|
pkgver=2.5.0
|
|
pkgrel=1
|
|
pkgdesc="An XML parser library"
|
|
arch=("x86_64")
|
|
url="https://libexpat.github.io/"
|
|
license=("MIT")
|
|
source=("https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/$pkgname-$pkgver.tar.bz2")
|
|
sha256sums=("6f0e6e01f7b30025fa05c85fdad1e5d0ec7fd35d9f61b22f34998de11969ff67")
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
|
|
cmake -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-B build
|
|
|
|
ninja -C build
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
|
|
DESTDIR=$pkgdir ninja -C build install
|
|
}
|