new: lfs-12.2-systemd/expat-2.6.2
This commit is contained in:
30
lfs-12.2-systemd/expat-2.6.2.PKGBUILD
Normal file
30
lfs-12.2-systemd/expat-2.6.2.PKGBUILD
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
pkgname=expat
|
||||||
|
pkgver=2.6.4
|
||||||
|
pkgdesc="An XML parser library"
|
||||||
|
homepage="https://libexpat.github.io/"
|
||||||
|
license=(MIT)
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||||
|
urls=("https://prdownloads.sourceforge.net/${pkgname}/${sources[0]}")
|
||||||
|
md5sums=("101fe3e320a2800f36af8cf4045b45c7")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--disable-static \
|
||||||
|
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
src_check() {
|
||||||
|
make check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
make DESTDIR="${pkgdir}" install
|
||||||
|
install -v -m644 doc/*.{html,css} "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||||
|
install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}/"
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user