1 # Contributor: Eric Le Bras <eric.lebras@gmail.com>
6 pkgdesc="Edonkey 2000 file hash calculator"
7 url="http://ed2k-tools.sourceforge.net/ed2k_hash.shtml"
11 source=(http://downloads.sourceforge.net/sourceforge/ed2k-tools/ed2k_hash-${pkgver}.tar.gz
16 md5sums=('545d44d5e00078011f41a18e235f4af8'
17 'e6c0145a1a3ed855bc9f6d7fa2148e45'
18 'af0f965f6712ae55127b7d22bf8708af'
19 'b6068fa1f78d78c0e70eefb82511326b'
20 '5a5af41f757248a8375916d09f27285c')
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
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