updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ed2k_hash / PKGBUILD
blob435fb8c29c8b14c3a62195b44a2f945c54df08ef
1 # Contributor: Eric Le Bras <eric.lebras@gmail.com>
3 pkgname=ed2k_hash
4 pkgver=0.4.0
5 pkgrel=1
6 pkgdesc="Edonkey 2000 file hash calculator"
7 url="http://ed2k-tools.sourceforge.net/ed2k_hash.shtml"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 depends=('fltk')
11 source=(http://downloads.sourceforge.net/sourceforge/ed2k-tools/ed2k_hash-${pkgver}.tar.gz
12         ed2k_hash-gcc43.patch
13         ed2k_hash-64bit.patch
14         ed2k_hash.desktop
15         ed2k_hash.png)
16 md5sums=('545d44d5e00078011f41a18e235f4af8'
17          'e6c0145a1a3ed855bc9f6d7fa2148e45'
18          'af0f965f6712ae55127b7d22bf8708af'
19          'b6068fa1f78d78c0e70eefb82511326b'
20          '5a5af41f757248a8375916d09f27285c')
22 build() {
23   cd $srcdir/$pkgname-$pkgver
24   patch -Np1 -i ${startdir}/src/ed2k_hash-gcc43.patch || return 1
25   [ "$CARCH" == "x86_64" ] && (patch -Np1 -i ${startdir}/src/ed2k_hash-64bit.patch || return 1)
26   ./configure --prefix=/usr || return 1
27   make || return 1
28   make DESTDIR=$pkgdir install
29   install -D -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
30   install -D -m644 $srcdir/$pkgname.png $pkgdir/usr/share/icons/hicolor/24x24/apps/$pkgname.png