From 10ee6f2c5c225ba753caa21b4fb7b079716bdb4e Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 7 Sep 2024 23:18:11 +0800 Subject: [PATCH] sed 4.9-1 --- sed/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sed/PKGBUILD diff --git a/sed/PKGBUILD b/sed/PKGBUILD new file mode 100644 index 0000000..fa1be35 --- /dev/null +++ b/sed/PKGBUILD @@ -0,0 +1,36 @@ +# 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 +pkgname=sed +pkgver=4.9 +pkgrel=1 +pkgdesc="GNU stream editor" +arch=('x86_64') +url="https://www.gnu.org/software/sed/" +license=('GPL3') +groups=('base' 'base-devel') +depends=('glibc' 'acl') +makedepends=('gettext') +source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} + + make + make html +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + install -d -m755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} + install -m644 doc/sed.html ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} +}