summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1157bf81faba3b5b25df3f73dbc49e40a4016067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
pkgname=numdiff
pkgver=5.8.1
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='Program to compare files ignoring small numeric differences'
url='http://www.nongnu.org/numdiff/'
license=('GPL3')
makedepends=('gmp')
depends=('gmp')
source=(http://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.gz)
install=numdiff.install
md5sums=('a295eb391f6cb1578209fc6b4f9d994e')
options=(!buildflags)

# Don't allow '--enable-optimization' or '-O' in CFLAGS.
# See 'Known issues' on the site
# The bug reproduces on GCC 4.8.1 x86_64

build() {
	cd $pkgname-$pkgver
	./configure --prefix=/usr --enable-nls --enable-gmp
	make
}

package() {
	cd $pkgname-$pkgver

	make DESTDIR="$pkgdir" install
	make DESTDIR="$pkgdir" install-nls

	# We delete info file because there is already gzipped one
	rm "$pkgdir/usr/share/info/$pkgname.info"
}