mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
Added diffutils
This commit is contained in:
parent
cdb13e28bf
commit
eeb62bc631
2 changed files with 46 additions and 0 deletions
26
core/diffutils/PKGBUILD
Executable file
26
core/diffutils/PKGBUILD
Executable file
|
@ -0,0 +1,26 @@
|
|||
# Maintainer: Mike Staszel <mikestaszel@plugapps.com>
|
||||
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
||||
|
||||
pkgname=diffutils
|
||||
pkgver=2.9
|
||||
pkgrel=1
|
||||
pkgdesc="Utility programs used for creating patch files"
|
||||
arch=('arm')
|
||||
url="http://www.gnu.org/software/diffutils"
|
||||
license=('GPL3')
|
||||
groups=('base')
|
||||
depends=('glibc' 'libsigsegv')
|
||||
install=diffutils.install
|
||||
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
|
||||
md5sums=('d6bc1bdc874ddb14cfed4d1655a0dbbe')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
make DESTDIR=${pkgdir} install || return 1
|
||||
}
|
20
core/diffutils/diffutils.install
Executable file
20
core/diffutils/diffutils.install
Executable file
|
@ -0,0 +1,20 @@
|
|||
infodir=/usr/share/info
|
||||
filelist=(diff.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
|
||||
}
|
Loading…
Reference in a new issue