updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / hydranode / PKGBUILD
blobe06c33e63bf6ad36085838ee1706c8159b681250
1 #Contributor: Troll <gnu.troll@gmail.com>
2 pkgname=hydranode
3 pkgver=0.3
4 pkgrel=1
5 pkgdesc="Bittorrent/Edonkey Client"
6 url="http://hydranode.com/"
7 license="GPL"
8 depends=('qt4>=4.0')
9 install=hydranode.install
10 source=(http://puzzle.dl.sourceforge.net/sourceforge/hydranode/$pkgname-$pkgver-r2998-linux.tar.bz2 hydranode hydranode.png hydranode.desktop)
11 md5sums=('14e79f3e97b7da45bdc48bcc2f2136e5')
13 build() {
14   cd $startdir/src/$pkgname-$pkgver/
16   mkdir -p $startdir/pkg/opt/$pkgname-$pkgver/
17   mkdir -p $startdir/pkg/opt/$pkgname-$pkgver/backgrounds/plugins
18   mkdir -p $startdir/pkg/opt/$pkgname-$pkgver/doc
19   mkdir -p $startdir/pkg/opt/$pkgname-$pkgver/lib
20   mkdir -p $startdir/pkg/opt/$pkgname-$pkgver/plugins
22 # Install executable
24   install -m 755 $startdir/src/$pkgname-$pkgver/hlink $startdir/pkg/opt/$pkgname-$pkgver/
25   install -m 755 $startdir/src/$pkgname-$pkgver/hydranode $startdir/pkg/opt/$pkgname-$pkgver/
26   install -m 755 $startdir/src/$pkgname-$pkgver/hydranode-core $startdir/pkg/opt/$pkgname-$pkgver/
28 # Install other files
30   install -m 644 $startdir/src/$pkgname-$pkgver/backgrounds/plugins/donkeyserverbar.png $startdir/pkg/opt/$pkgname-$pkgver/backgrounds/plugins/
31   install -m 644 $startdir/src/$pkgname-$pkgver/backgrounds/*.png $startdir/pkg/opt/$pkgname-$pkgver/backgrounds/
32   install -m 644 $startdir/src/$pkgname-$pkgver/doc/* $startdir/pkg/opt/$pkgname-$pkgver/doc/
33   install -m 644 $startdir/src/$pkgname-$pkgver/lib/* $startdir/pkg/opt/$pkgname-$pkgver/lib
34   install -m 644 $startdir/src/$pkgname-$pkgver/plugins/* $startdir/pkg/opt/$pkgname-$pkgver/plugins
36 # Install .desktop file
37   mkdir -p $startdir/pkg/usr/share/applications
38   install -m 644 $startdir/$pkgname.desktop $startdir/pkg/usr/share/applications/
40 # Install icon
41   mkdir -p $startdir/pkg/usr/share/pixmaps
42   install -m 644 $startdir/$pkgname.png $startdir/pkg/usr/share/pixmaps/
44 # Install script
45   mkdir -p $startdir/pkg/usr/bin/
46   install -m 755 $startdir/hydranode $startdir/pkg/usr/bin/