Last change
on this file since 29460 was 29460, checked in by Jeremy Symon, 9 years ago |
Initial commit for linux packages. Contains scripts and patches, and package definitions for pacman.
|
File size:
1.2 KB
|
Rev | Line | |
---|
[29460] | 1 | # Maintainer: Jeremy Symon <[email protected]>
|
---|
| 2 | pkgname=greenstone-demo-svn
|
---|
| 3 | pkgver=r29457
|
---|
| 4 | pkgrel=1
|
---|
| 5 | pkgdesc="Demo Greenstone Digital Library Collections"
|
---|
| 6 | url="http://greenstone.org"
|
---|
| 7 | arch=('any')
|
---|
| 8 | license=('GPLv2')
|
---|
| 9 | depends=('greenstone')
|
---|
| 10 | optdepends=()
|
---|
| 11 | makedepends=(
|
---|
| 12 | 'greenstone-tools'
|
---|
| 13 | 'svn'
|
---|
| 14 | )
|
---|
| 15 | # conflicts=()
|
---|
| 16 | # replaces=()
|
---|
| 17 | # backup=()
|
---|
| 18 | # install=''
|
---|
| 19 | source=("svn+http://svn.greenstone.org/main/trunk/greenstone3/web/sites/localsite/collect")
|
---|
| 20 | md5sums=('SKIP')
|
---|
| 21 |
|
---|
| 22 | pkgver() {
|
---|
| 23 | cd "collect"
|
---|
| 24 | local ver="$(svnversion)"
|
---|
| 25 | printf "r%s" "${ver//[[:alpha:]]}"
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | build() {
|
---|
| 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 |
|
---|
| 42 | package() {
|
---|
| 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 repository browser.