updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / freearc / PKGBUILD
blob5a02d6da922f3d9e3ac7c2c67558d3370ff249a6
1 # Maintainer: TuxSpirit<tuxspiritATarchlinuxDOTfr>
3 pkgname=freearc
4 _pkgname=FreeArc
5 pkgver=0.666
6 pkgrel=2
7 pkgdesc="FreeArc archiver combines unexampled speed/compression ratio and multitude of features"
8 license=('GPL')
9 arch=('i686')
10 depends=('curl' 'gmp' 'gtk2')
11 url="http://freearc.org"
12 source=(http://freearc.org/download/${pkgver}/FreeArc-${pkgver}-linux-i386.tar.bz2 \
13         freearc.desktop \
14         freearcusercfg.sh)
15 install=${pkgname}.install
16 options=(!emptydirs)
18 md5sums=('d522c029c733b0b7d394b489e187a687'
19          'c8a9eacf55da51f4f6c92d39f27dc1d8'
20          'bb85ad2af190393df10980299a3d875e')
22 build() {   
24  install -d -m 755 ${pkgdir}/usr/bin
25  install -d -m 755 ${pkgdir}/etc/${_pkgname}
26  install -d -m 755 ${pkgdir}/usr/lib/${_pkgname}
27  install -d -m 755 ${pkgdir}/usr/lib/${_pkgname}/{Addons,arc.languages,Codecs,Documentation,scripts}
28  install -d -m 755 ${pkgdir}/usr/lib/${_pkgname}/Addons/Benchmarking
30  #Binaries
31  install -m 755 ${srcdir}/FreeArc-${pkgver}-linux-i386/bin/* ${pkgdir}/usr/bin
33  #Settings
34  install -m 755 ${srcdir}/FreeArc-${pkgver}-linux-i386/cfg/* ${pkgdir}/etc/${_pkgname}
35  install -m 755 ${srcdir}/FreeArc-${pkgver}-linux-i386/scripts/* ${pkgdir}/usr/lib/${_pkgname}/scripts
37  #User local
38  install -m 755 ${srcdir}/freearcusercfg.sh ${pkgdir}/usr/lib/${_pkgname}/scripts/freearcusercfg.sh
40  #Librairies
41  install -m 755 ${srcdir}/FreeArc-${pkgver}-linux-i386/lib/{*.so,*.sfx,*.txt} ${pkgdir}/usr/lib/${_pkgname} 
42  install -m 644 ${srcdir}/FreeArc-${pkgver}-linux-i386/lib/arc.languages/* ${pkgdir}/usr/lib/${_pkgname}/arc.languages
43  #Codecs
44  install -m 644 ${srcdir}/FreeArc-${pkgver}-linux-i386/lib/Codecs/* ${pkgdir}/usr/lib/${_pkgname}/Codecs
45  #Addons 
46  install -m 644 ${srcdir}/FreeArc-${pkgver}-linux-i386/Addons/{supertest,*.arc} ${pkgdir}/usr/lib/${_pkgname}/Addons 
47  install -m 644 ${srcdir}/FreeArc-${pkgver}-linux-i386/Addons/Benchmarking/{*.rb,*.txt} ${pkgdir}/usr/lib/${_pkgname}/Addons/Benchmarking || true
49  #Documentations
50  install -m 644 ${srcdir}/FreeArc-${pkgver}-linux-i386/Documentation/* ${pkgdir}/usr/lib/${_pkgname}/Documentation
52  # Users - Desktop
53  install -D -m 644 ${srcdir}/freearc.desktop ${pkgdir}/usr/share/applications/freearc.desktop
55 }