new: lfs-12.2-systemd/sed-4.9

This commit is contained in:
Yingjie Wang 2024-11-29 01:38:35 -05:00
parent 1c11a5fb79
commit 2f8af90da7

View File

@ -0,0 +1,29 @@
pkgname="sed"
pkgver="4.9"
pkgdesc='GNU stream editor'
homepage="https://www.gnu.org/software/sed/"
license=('GPL3')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("6aac9b2dbafcd5b7a67a8a9bcb8036c3")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr
make
make html
}
src_check() {
chown -R leaf .
su leaf -c "PATH=$PATH make check"
}
src_install() {
make DESTDIR="$pkgdir" install
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
install -m644 doc/sed.html "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
}