summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/sed/PKGBUILD49
-rw-r--r--abs/core/sed/sed.install20
2 files changed, 32 insertions, 37 deletions
diff --git a/abs/core/sed/PKGBUILD b/abs/core/sed/PKGBUILD
index a6e3219..29905cd 100644
--- a/abs/core/sed/PKGBUILD
+++ b/abs/core/sed/PKGBUILD
@@ -1,34 +1,49 @@
-# $Id: PKGBUILD 187041 2013-06-03 11:15:34Z allan $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=sed
-pkgver=4.2.2
-pkgrel=3
-pkgdesc="GNU stream editor"
-arch=('i686' 'x86_64')
-url="http://www.gnu.org/software/sed"
+pkgver=4.8
+pkgrel=1
+pkgdesc='GNU stream editor'
+arch=('x86_64')
+url='https://www.gnu.org/software/sed/'
license=('GPL3')
-groups=('base' 'base-devel')
-depends=('acl' 'sh')
+groups=('base-devel')
+depends=('glibc' 'acl' 'attr')
makedepends=('gettext')
-install=sed.install
-source=(ftp://ftp.gnu.org/pub/gnu/sed/${pkgname}-${pkgver}.tar.gz{,.sig})
+source=("https://ftp.gnu.org/pub/gnu/sed/$pkgname-$pkgver.tar.xz"{,.sig})
+validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') #Jim Meyering <jim@meyering.net>
+sha256sums=('f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633'
+ 'SKIP')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # apply patch from the source array (should be a pacman feature)
+ local src
+ for src in "${source[@]}"; do
+ src="${src%%::*}"
+ src="${src##*/}"
+ [[ $src = *.patch ]] || continue
+ msg2 "Applying patch $src..."
+ patch -Np1 < "../$src"
+ done
+}
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
check() {
- cd ${srcdir}/${pkgname}-${pkgver}
+ cd $pkgname-$pkgver
make check
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
}
-md5sums=('4111de4faa3b9848a0686b2f260c5056'
- 'SKIP')
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/sed/sed.install b/abs/core/sed/sed.install
deleted file mode 100644
index c052403..0000000
--- a/abs/core/sed/sed.install
+++ /dev/null
@@ -1,20 +0,0 @@
-infodir=/usr/share/info
-filelist=(sed.info)
-
-post_install() {
- [ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
- install-info $infodir/$file.gz $infodir/dir 2> /dev/null
- done
-}
-
-post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- [ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
- install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
- done
-}