ed: move from [core] to [apps], and update to 1.11

This commit is contained in:
Jeff Huang 2015-07-06 07:46:52 +00:00
parent db7be1f05c
commit 5950e6895a
2 changed files with 56 additions and 0 deletions

34
ed/PKGBUILD Normal file
View File

@ -0,0 +1,34 @@
pkgname=ed
pkgver=1.11
pkgrel=1
pkgdesc="A POSIX-compliant line-oriented text editor"
arch=('x86_64')
license=('GPL')
url="http://www.gnu.org/software/ed/ed.html"
depends=('glibc' 'sh')
groups=('base-devel')
options=('!emptydirs')
source=("ftp://ftp.gnu.org/gnu/ed/$pkgname-$pkgver.tar.lz")
install='ed.install'
md5sums=('891635e76c661611bfb7e963bde38856')
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/ \
--bindir=/usr/bin \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
"CFLAGS=$CFLAGS" \
"LDFLAGS=$LDFLAGS"
make
}
check() {
make -C "$pkgname-$pkgver" check
}
package() {
make -C "$pkgname-$pkgver" "DESTDIR=$pkgdir" install
}

22
ed/ed.install Normal file
View File

@ -0,0 +1,22 @@
infodir=usr/share/info
filelist=(ed.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
}
# vim:set ts=2 sw=2 et: