updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / album / PKGBUILD
bloba0829d1fb5334a8185448b344beeb4e922591646
1 # Contributor: Rafael G. Martins <rafael@rafaelmartins.com>
2 # Contributor: Firmicus <firmicus āt gmx dōt net>
3 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
5 pkgname=album
6 pkgver=4.07
7 pkgrel=1
8 pkgdesc="Perl HTML photo album generator that supports themes"
9 url="http://marginalhacks.com/Hacks/album/"
10 arch=('i686' 'x86_64')
11 license=('custom')
12 depends=('perl' 'imagemagick')
13 source=(http://marginalhacks.com/bin/album.versions/${pkgname}-${pkgver}.tar.gz \
14         http://marginalhacks.com/bin/album.versions/data-4.05.tar.gz)
15 md5sums=('f607cb16da7c24b4deadb41bcb434fdc'
16          '5477cb10ab74f996227aad3012b9ee07')
18 build() {
19   install -d ${pkgdir}/usr/share/album/Themes/ || return 1
20   install -d ${pkgdir}/usr/share/album/plugins/ || return 1
21   install -d ${pkgdir}/usr/bin/ || return 1
22   install -d ${pkgdir}/usr/share/man/man1/ || return 1
23   cd ${srcdir}
24   cp -r Themes/* ${pkgdir}/usr/share/album/Themes || return 1
25   cp -r plugins/* ${pkgdir}/usr/share/album/plugins || return 1
26   install -m 755 ${pkgname}-${pkgver}/album ${pkgdir}/usr/bin/album || return 1
27   install -D -m 644 License.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
28   gzip -c ${pkgname}-${pkgver}/album.1 > ${pkgdir}/usr/share/man/man1/album.1.gz || return 1
29   chmod -R 755 ${pkgdir}/usr/share/album/{Themes,plugins}