Browse Source

ed: add new package

tags/milky-way/v0.3
André Silva 1 year ago
parent
commit
bd30ccb203
1 changed files with 39 additions and 0 deletions
  1. +39
    -0
      ed/PKGBUILD

+ 39
- 0
ed/PKGBUILD View File

@@ -0,0 +1,39 @@
# Maintainer (Arch): Dave Reisner <dreisner@archlinux.org>
# Maintainer (Arch): Andreas Radke <andyrtr@archlinux.org>
# Maintainer: André Silva <emulatorman@hyperbola.info>

pkgname=ed
pkgver=1.14.2
pkgrel=2.hyperbola1
pkgdesc="A POSIX-compliant line-oriented text editor"
arch=('i686' 'x86_64')
license=('GPL-3')
url="https://www.gnu.org/software/ed/ed.html"
depends=('glibc' 'sh')
options=('!emptydirs')
validpgpkeys=('1D41C14B272A2219A739FA4F8FE99503132D7742') # Antonio Diaz Diaz
source=("https://ftp.gnu.org/gnu/ed/$pkgname-$pkgver.tar.lz"{,.sig})
sha512sums=('653bcb89788b2d18c726336fb6f17678ac031fe6ea03a93ff248886a075c867ba5423d5471401e44cbdcce3b4cb766b621ca7b70d76881f5044ec3412767b11f'
'SKIP')

build() {
cd "$pkgname-$pkgver"

./configure --prefix=/ \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
"CPPFLAGS=$CPPFLAGS" \
"CFLAGS=$CFLAGS" \
"LDFLAGS=$LDFLAGS"

make
}

check() {
make -C "$pkgname-$pkgver" check
}

package() {
make -C "$pkgname-$pkgver" "DESTDIR=$pkgdir" install
install -Dm644 "$pkgname-$pkgver"/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}

Loading…
Cancel
Save