Core/expat/PKGBUILD
2024-09-07 23:18:11 +08:00

36 lines
954 B
Bash

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=expat
pkgver=2.6.2
pkgrel=1
pkgdesc="An XML parser library"
arch=('x86_64')
url="https://libexpat.github.io/"
license=('MIT')
depends=('glibc')
source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/$pkgname-$pkgver.tar.xz)
sha256sums=(ee14b4c5d8908b1bec37ad937607eab183d4d9806a08adee472c3c3121d27364)
build() {
cd ${pkgname}-${pkgver}
${CONFIGURE} \
--disable-static \
--docdir=/usr/share/doc/${pkgname}-${pkgver}
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -v -m644 doc/*.{html,css} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
}