updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / alfresco-community-base / PKGBUILD
blob02487a3a8292226752cbf4054b6391e50d086567
1 # Contributor : Bryce Nordgren <bnordgren@fs.fed.us>
3 pkgname=alfresco-community-base
4 pkgver=3.4.d
5 pkgrel=2
6 pkgdesc="The most scalable Java content repository that runs on commodity hardware and software."
7 url="http://www.alfresco.com"
8 replaces=(alfresco-community-mmt)
9 license=('custom')
10 arch=('any')
11 source=(http://sourceforge.net/projects/alfresco/files/Alfresco%203.4.d%20Community/alfresco-community-$pkgver.zip
12       apply_amps.sh mmt)
13 md5sums=('2bc3fe66ed7cb24fb6b449eb7a36abd4'
14          'b1f609689db57b917f8ae569fe073108'
15          '9304799397c0546936bc56a3748a1712')
16 depends=('java-runtime>=6' 'libreoffice-common')
17 optdepends=('imagemagick: Image manipulation and preview')
18 groups=('alfresco')
19 makedepends=( )
21 options=()
22 install=
24 package() {
26         # Make the alfresco directories
27         alf_dir=$pkgdir/usr/share/webapps/alfresco
28         alf_conf=$pkgdir/etc/webapps/alfresco
29         alf_apps=$pkgdir/usr/share/java/alfresco
30         mkdir -p $alf_dir
31         mkdir -p $alf_conf
32         mkdir -p $alf_apps
34         # Copy application jarfiles
35         mv $srcdir/bin/*.jar $alf_apps
37         # Copy command line files to /usr/bin
38         mkdir -p $pkgdir/usr/bin
39         install --mode=755 $srcdir/apply_amps.sh $pkgdir/usr/bin
40         install --mode=755 $srcdir/mmt $pkgdir/usr/bin
42         # Install the WARfiles.
43         mv $srcdir/web-server/webapps/*.war $alf_dir
45         # Install the configuration directory tree over
46         mv $srcdir/web-server/shared/classes $alf_conf/conf
47         cd $alf_dir
48         ln -s /etc/webapps/alfresco/conf
50         # Install the example Tomcat6 setup
51         mv $srcdir/web-server/conf $alf_conf/tomcat_setup
53         #
54         # Licensing is "complicated" and/or "mixed".  Ergo, 
55         # just move the entire licensing directory over to 
56         # /usr/share/licenses/alfresco
57         #
58         mkdir -p $pkgdir/usr/share/licenses
59         mv $srcdir/licenses $pkgdir/usr/share/licenses/alfresco
60         mv $srcdir/README.txt $pkgdir/usr/share/licenses/alfresco
62         # make a directory to hold the "amps" (Alfresco Package Files)
63         mkdir -p $alf_dir/amps
64         mkdir -p $alf_dir/amps_share
66 # vim: set ft=sh ts=2 sw=2 et: