archrelease: copy trunk to extra-x86_64
[arch-packages.git] / sed / repos / core-x86_64 / PKGBUILD
blob29905cdc7cdfa88168ae75e1524d2ff05e532997
1 # Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: judd <jvinet@zeroflux.org>
5 pkgname=sed
6 pkgver=4.8
7 pkgrel=1
8 pkgdesc='GNU stream editor'
9 arch=('x86_64')
10 url='https://www.gnu.org/software/sed/'
11 license=('GPL3')
12 groups=('base-devel')
13 depends=('glibc' 'acl' 'attr')
14 makedepends=('gettext')
15 source=("https://ftp.gnu.org/pub/gnu/sed/$pkgname-$pkgver.tar.xz"{,.sig})
16 validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') #Jim Meyering <jim@meyering.net>
17 sha256sums=('f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633'
18             'SKIP')
20 prepare() {
21   cd $pkgname-$pkgver
22   # apply patch from the source array (should be a pacman feature)
23   local src
24   for src in "${source[@]}"; do
25     src="${src%%::*}"
26     src="${src##*/}"
27     [[ $src = *.patch ]] || continue
28     msg2 "Applying patch $src..."
29     patch -Np1 < "../$src"
30   done
33 build() {
34   cd $pkgname-$pkgver
35   ./configure --prefix=/usr
36   make
39 check() {
40   cd $pkgname-$pkgver
41   make check
44 package() {
45   cd $pkgname-$pkgver
46   make DESTDIR="$pkgdir" install
49 # vim:set ts=2 sw=2 et: