mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 08:27:15 +08:00
ed: move from [core] to [apps], and update to 1.11
This commit is contained in:
parent
db7be1f05c
commit
5950e6895a
34
ed/PKGBUILD
Normal file
34
ed/PKGBUILD
Normal 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
22
ed/ed.install
Normal 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:
|
Loading…
Reference in New Issue
Block a user