root/main/trunk/package-kits/linux/pacman/demo/PKGBUILD @ 29460

Revision 29460, 1.2 KB (checked in by jts21, 6 years ago)

Initial commit for linux packages. Contains scripts and patches, and package definitions for pacman.

Line 
1# Maintainer: Jeremy Symon <jtsymon@gmail.com>
2pkgname=greenstone-demo-svn
3pkgver=r29457 
4pkgrel=1
5pkgdesc="Demo Greenstone Digital Library Collections"
6url="http://greenstone.org"
7arch=('any')
8license=('GPLv2')
9depends=('greenstone')
10optdepends=()
11makedepends=(
12  'greenstone-tools'
13  'svn'
14)
15# conflicts=()
16# replaces=()
17# backup=()
18# install=''
19source=("svn+http://svn.greenstone.org/main/trunk/greenstone3/web/sites/localsite/collect")
20md5sums=('SKIP')
21
22pkgver() {
23  cd "collect"
24  local ver="$(svnversion)"
25  printf "r%s" "${ver//[[:alpha:]]}"
26}
27
28build() {
29  cd "${srcdir}/collect"
30  find . -type d -name ".svn" -exec rm -rf {} \; || :
31  rm -f */index.zip
32  cd "${srcdir}"
33  rm -rf sites/
34  mkdir -p sites/localsite
35  mv collect sites/localsite/
36  export GSDL3HOME=$(pwd)
37  . greenstone --no-interactive
38  find sites/localsite/collect/ -mindepth 1 -maxdepth 1 -not -name ".*" -execdir bash -c 'col="$(basename $1)"; import.pl -removeold -site localsite "$col"; buildcol.pl -removeold -site localsite "$col"; mv "${col}/building" "${col}/index"' -- {} \;
39  mv sites/localsite/collect .
40}
41
42package() {
43  install -d ${pkgdir}/srv/gsdl/sites/localsite
44  cp -r ${srcdir}/collect ${pkgdir}/srv/gsdl/sites/localsite/
45}
46
47# vim:expandtab:ts=2:sw=2:
48
Note: See TracBrowser for help on using the browser.