1 # Contributor : Bryce Nordgren <bnordgren@fs.fed.us>
3 pkgname=alfresco-community-base
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)
11 source=(http://sourceforge.net/projects/alfresco/files/Alfresco%203.4.d%20Community/alfresco-community-$pkgver.zip
13 md5sums=('2bc3fe66ed7cb24fb6b449eb7a36abd4'
14 'b1f609689db57b917f8ae569fe073108'
15 '9304799397c0546936bc56a3748a1712')
16 depends=('java-runtime>=6' 'libreoffice-common')
17 optdepends=('imagemagick: Image manipulation and preview')
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
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
48 ln -s /etc/webapps/alfresco/conf
50 # Install the example Tomcat6 setup
51 mv $srcdir/web-server/conf $alf_conf/tomcat_setup
54 # Licensing is "complicated" and/or "mixed". Ergo,
55 # just move the entire licensing directory over to
56 # /usr/share/licenses/alfresco
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: