summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7bbe066b071f686c04b0c0397c1e601106895235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Phillip Smith <pkgbuild@phs.id.au>
# http://github.com/fukawi2/aur-packages

### I AM ONLY THE PACKAGER, NOT THE DEVELOPER
### Please ask support questions about this software in one of:
###   1) The AUR comments; OR
###   2) Upstream forums/maillist etc; OR
###   3) The ArchLinux forums
### I do not always know enough about the software itself, or don't have the
### time to promptly respond to direct emails.
### If you have found a problem with the package/PKGBUILD (as opposed to
### the software) then please do email me or post an AUR comment.

pkgname=dalbum
pkgver=144_177
pkgrel=1
pkgdesc="A free PHP photo album. It is small, easy to install and highly customizable at the same time. Features include slide shows, image comments, support for video and PDF files and many more."
arch=('any')
url="http://www.dalbum.org/"
license=('GPL')
depends=('imagemagick' 'php>=4.1')
backup=("etc/webapps/$pkgname/config.php")
source=("http://www.dalbum.org/${pkgname}${pkgver}.tar.gz")
md5sums=('a30a45fe606d9dbe15104cbbc409df10')

package() {
  _CONF_DIR="etc/webapps/$pkgname"
  _INST_DIR="usr/share/webapps/$pkgname"

  # Install webroot files
	install -dm755 "$pkgdir"/$_INST_DIR
	cp -r "$srcdir"/* "$pkgdir"/$_INST_DIR
	
  # Fix permissions
  chmod -R u=rwX,go=rX "$pkgdir/$_INST_DIR"

  # Move config file to /etc and symlink
  mkdir -p "$pkgdir"/$_CONF_DIR
  mv "$pkgdir"/$_INST_DIR/config/{*,.??*} "$pkgdir"/$_CONF_DIR
  rmdir "$pkgdir"/$_INST_DIR/config
  ln -sf $_CONF_DIR "$pkgdir"/$_INST_DIR/config
}

# vim:set ts=2 sw=2 et: