smlinux/base/libxml2/libxml2.SMBuild

39 lines
1,012 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxml2
version=2.13.4
build=1sml
homepage="http://www.xmlsoft.org/"
download="ftp://xmlsoft.org/libxml2/libxml2-$version.tar.gz"
desc="XML parser library"
requires="readline zlib xz python3"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/libxml2-2.12.0-python3-unicode-errors.patch
}
build() {
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--with-legacy \
--with-history
make
make install DESTDIR=$pkg
cp Copyright $pkgdocs/LICENSE
mkfinalpkg
}
sha512sums="
189fa85ccca63a39deb023c498935c8e2f2ff43abf7cf0948b981b76acf655a3002702a0fbd2ef08ec137581bef6f67c3f74aca1e0d4079fb6d58e48ed8cea24 libxml2-2.13.4.tar.lz
f5c468d1fe8dde30d6914d6cba2e1dd480cc491633c9915f94e37b543beda16c65ac0d658717837fa91b9ae358c7ce06565b240fd0d40897ea78d819a750ad56 libxml2-2.12.0-python3-unicode-errors.patch
"