updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / gotext++desk / PKGBUILD
blob8d0bc7c8c53c4be4213892201f889adf8acc6c87
2 # Contributor: said
4 pkgname=gotext++desk
5 _pkgname=goText++Desk
6 pkgver=0.9.3_BETA
7 pkgrel=1
8 pkgdesc="goText++ Desk! is a free software to send free SMS (and MMS)"
9 arch=('i686' 'x86_64')
10 url="http://www.gotext.org/wiki/goText_pp_Desk"
11 license=('GPLv2')
12 depends=('qca-ossl')
13 makedepends=('deb2targz')
14 if [ "${CARCH}" = 'x86_64' ]; then
15     ARCH='amd64'
16     source=("http://sourceforge.net/projects/gotext/files/goText%2B%2B%20Desk%21/0.9.3%20beta/${_pkgname}_${pkgver}_amd64.deb")
17     noextract=("${_pkgname}_${pkgver}_amd64.deb")
18     md5sums=('c4d931abe9fe9a031a0da499b1e3ac5d')
19 elif [ "${CARCH}" = 'i686' ]; then
20     ARCH='i386'
21     source=("https://sourceforge.net/projects/gotext/files/goText%2B%2B%20Desk%21/0.9.3%20beta/${_pkgname}_${pkgver}_i386.deb")
22     noextract=("${_pkgname}_${pkgver}_i386.deb")
23     md5sums=('09237d6140702be719b412a6fc5532d3')
26 build() {
27   if [ "${CARCH}" = 'x86_64' ]; then
28      FILE_BASE_NAME="${_pkgname}_${pkgver}_amd64"
29   elif [ "${CARCH}" = 'i686' ]; then
30      FILE_BASE_NAME="${_pkgname}_${pkgver}_i386"
31   fi
32   deb2targz $FILE_BASE_NAME.deb
33   tar -zxf $FILE_BASE_NAME.tar.gz
34   cp -r usr ${startdir}/pkg
35   mkdir -p ${startdir}/pkg/usr/bin/
36   ln -s /usr/share/goText++Desk/goText_pp_Desk ${startdir}/pkg/usr/bin/goText_pp_Desk
37