updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / memopal / PKGBUILD
blob3f1a5e63b146c1649a3919a9838c32bb2e4a4de3
1 # Maintainer: lorenzog <lorenzo[at]keepsimple[dot]it>
3 pkgname=memopal
4 pkgver=1.0.0_3016
5 pkgrel=2
6 pkgdesc="An online backup, storage and file sharing tool, all-in-one."
7 url="http://www.memopal.com/"
8 arch=('x86_64' 'i686')
9 license=('custom:"Copyright 2007-2011 Memopal Srl"')
10 depends=('curl')
11 optdepends=('davfs2: mounting support')
12 makedepends=('deb2targz' 'tar')
14 if [ "${CARCH}" = "x86_64" ]; then
15         source=("http://apps.memopal.com/download/memopal/memopal_debian_amd64.deb"
16                         "http://schlunix.org/archlinux/core/os/$CARCH/openssl-0.9.8n-1-$CARCH.pkg.tar.xz"
17                         'license')                                                                                                                                                      
18         md5sums=('c7131162e6239f540c624b0a8c27de72'
19                          'c97c359cff79ff25ee8f221541642aa3'
20                          '91d19c4a306c29a6e9b170efd9b35697')
21         _carch=_amd64
23 elif [ "${CARCH}" = "i686" ]; then
24         source=("http://apps.memopal.com/download/memopal/memopal_debian_i386.deb"
25                         "http://schlunix.org/archlinux/core/os/$CARCH/openssl-0.9.8n-1-$CARCH.pkg.tar.xz"
26                         'license')
27         md5sums=('c1ac383360dfc55949958fa16b4e0c47'
28                  'b1860e7fd78210542fbb4913aa7e8eb1'
29                  '91d19c4a306c29a6e9b170efd9b35697')
30         _carch=_i386
34 build() {
35   
36         #extract the content of the Debian package
37         deb2targz memopal_debian${_carch}.deb
38         tar -xzf memopal_debian${_carch}.tar.gz
41 package() {
43         #install configuration file, rc script and binary
44         mkdir -p ${pkgdir}/etc/rc.d
45         install -D -m755 ${srcdir}/etc/init.d/memopal ${pkgdir}/etc/rc.d/
46         install -D -m644 ${srcdir}/etc/memopal.conf.sample ${pkgdir}/etc/
47         mkdir -p ${pkgdir}/usr/bin
48         install -D -m755 ${srcdir}/usr/bin/memopal ${pkgdir}/usr/bin/
50         #install open-ssl compatibility aur package libraries
51         mkdir -p ${pkgdir}/usr/lib/
52         install -D -m555 ${srcdir}/usr/lib/libcrypto.so.0.9.8 ${pkgdir}/usr/lib/
53         install -D -m555 ${srcdir}/usr/lib/libssl.so.0.9.8 ${pkgdir}/usr/lib/
55         #install custom license
56         mkdir -p ${pkgdir}/usr/share/licenses/memopal
57         install -D -m555 ${srcdir}/license ${pkgdir}/usr/share/licenses/memopal
61 # vim:set ts=2 sw=2 et: