summaryrefslogtreecommitdiff
path: root/core/ed/PKGBUILD
blob: acce94227c823656f2ca99220b9bd6829e796b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 108145 2011-01-30 11:04:13Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=ed
pkgver=1.5
pkgrel=2
pkgdesc="A POSIX-compliant line editor"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.gnu.org/software/ed/ed.html"
install=ed.install
depends=('glibc' 'sh')
options=('!emptydirs')
source=(ftp://ftp.gnu.org/gnu/ed/${pkgname}-${pkgver}.tar.gz)
md5sums=('e66c03d7e4c67b025d5b6093ec678267')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/ \
	--mandir=/usr/share/man \
	--infodir=/usr/share/info \
	CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
  make || return 1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install

  cd ${pkgdir}/usr/share/info
  ln ed.info red.info
}