mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 04:27:13 +08:00
Upgrading gawk to version 4.0.1.
Also making so that it lives inside /usr/bin, rather than /bin.
This commit is contained in:
parent
8f16d95f35
commit
2fe1370281
@ -5,30 +5,31 @@
|
|||||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||||
|
|
||||||
pkgname=gawk
|
pkgname=gawk
|
||||||
pkgver=3.1.8
|
pkgver=4.0.1
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
pkgdesc="Gnu version of awk"
|
pkgdesc="The GNU awk utility interprets a special-purpose programming language that makes it possible to handle simple data-reformatting jobs with just a few lines of code."
|
||||||
arch=(i686 x86_64)
|
arch=('i686' 'x86_64')
|
||||||
url="http://www.gnu.org/directory/GNU/gawk.html"
|
url="http://www.gnu.org/software/gawk/gawk.html"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
groups=('base')
|
groups=('base')
|
||||||
provides=('awk')
|
provides=('awk')
|
||||||
install=gawk.install
|
install="gawk.install"
|
||||||
source=(ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
|
source=("ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
|
||||||
depends=('sh' 'glibc')
|
depends=('sh' 'glibc')
|
||||||
md5sums=('35937a0f83f0efe7a8c2dee635624784')
|
makedepends=('gzip')
|
||||||
|
md5sums=('bab2bda483e9f32be65b43b8dab39fa5')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $srcdir/$pkgname-$pkgver
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
./configure --prefix=/usr
|
|
||||||
make || return 1
|
|
||||||
make DESTDIR=$pkgdir install
|
|
||||||
mv $pkgdir/usr/libexec $pkgdir/usr/lib
|
|
||||||
install -dm755 $pkgdir/bin
|
|
||||||
mv $pkgdir/usr/bin/gawk* $pkgdir/bin/
|
|
||||||
mv $pkgdir/usr/bin/awk $pkgdir/bin/
|
|
||||||
|
|
||||||
rm $pkgdir/usr/share/info/dir
|
./configure --prefix=/usr
|
||||||
gzip -9 $pkgdir/usr/share/info/{gawk,gawkinet}.info
|
|
||||||
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
make install DESTDIR="${pkgdir}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
||||||
|
Loading…
Reference in New Issue
Block a user