archrelease: copy trunk to extra-x86_64
[arch-packages.git] / sed / repos / core-x86_64 / PKGBUILD
blobf895d7a7d17dbb09358a3224fecb91b35939c543
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.9
7 pkgrel=3
8 pkgdesc='GNU stream editor'
9 arch=('x86_64')
10 url='https://www.gnu.org/software/sed/'
11 license=('GPL3')
12 depends=('glibc' 'acl')
13 makedepends=('gettext')
14 source=("https://ftp.gnu.org/pub/gnu/sed/$pkgname-$pkgver.tar.xz"{,.sig})
15 validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') #Jim Meyering <jim@meyering.net>
16 sha256sums=('6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181'
17             'SKIP')
19 prepare() {
20   cd $pkgname-$pkgver
21   # apply patch from the source array (should be a pacman feature)
22   local src
23   for src in "${source[@]}"; do
24     src="${src%%::*}"
25     src="${src##*/}"
26     [[ $src = *.patch ]] || continue
27     msg2 "Applying patch $src..."
28     patch -Np1 < "../$src"
29   done
32 build() {
33   cd $pkgname-$pkgver
34   ./configure --prefix=/usr
35   make
38 check() {
39   cd $pkgname-$pkgver
40   make check
43 package() {
44   cd $pkgname-$pkgver
45   make DESTDIR="$pkgdir" install
48 # vim:set ts=2 sw=2 et: