updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / tlen / PKGBUILD
blob65c819c22d96a94a5be57e5dd9c0f880c09ad136
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
3 pkgname=tlen
4 pkgver=7.0.1.69
5 pkgrel=1
6 pkgdesc='Tlen IM Client.'
7 arch=('i686' 'x86_64')
8 url='http://tlen.pl/linux'
9 depends=('phonon' 'libxss' 'aspell')
10 makedepends=('chrpath')
11 install=tlen.install
12 license=('custom')
14 [ ${CARCH} = "i686" ] &&
15 _bname=tlenlinux &&
16 md5sums=('1cedad1c4383f5b320ff98a208c745a3')
18 [ ${CARCH} = "x86_64" ] &&
19 _bname=tlenlinux64 &&
20 md5sums=('46fcf0fc0e12486829d0a84f58b628d6')
22 source=("http://j.o2.pl/idi/${_bname}-${pkgver}.bin"
23         'tlen')
24 md5sums[1]='9936ae5b4f52d9cf70fbe6967dc08b03'
26 build() {
27   sh ${_bname}-${pkgver}.bin --noexec --target ./
29   cd data
31   # need to bother upstream to not hardcode the lib path in tlen-bin to ./tlen_libs
32   # so that we won't need to install to /opt
34   # need to chrpath since we move libs later
35   chrpath -r /opt/tlen/tlen_libs ./plugins/* ./tlen_libs/* ./tlen-bin > /dev/null
37   mkdir -p "${pkgdir}/opt/tlen"
39   # install program files
40   cp -r icon.png plugins tlen-bin tlen_libs "${pkgdir}/opt/tlen/"
42   # install executable
43   install -D "${srcdir}/tlen" "${pkgdir}/usr/bin/tlen"
45   # install license
46   install -D -m644 license.txt "${pkgdir}/usr/share/licenses/tlen/license"
48   # install desktop file
49   install -D -m644 ../tlen.desktop "${pkgdir}/usr/share/applications/tlen.desktop"