updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bracket / PKGBUILD
blobae07ae3b7c4683f6d3a3fb40164085a77906efd7
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 pkgname=bracket
3 pkgver=1.0.0
4 pkgrel=1
5 pkgdesc="High-dynamic-range (HDR) photo manager"
6 arch=('i686' 'x86_64')
7 url="http://www.coolhall.com/homepage/bracket/bracket.html"
8 license=('custom')
9 depends=('libx11')
10 [ $CARCH = "x86_64" ] && depends=('lib32-gcc-libs' 'lib32-libx11')
11 source=(http://www.coolhall.com/homepage/bracket/bracket.tgz \
12         bracket.sh bracket.desktop LICENSE)
13 # it's easier to package when it's not extracted because
14 # everything is extracted into top-level directory
15 noextract=(bracket.tgz)
16 md5sums=('01d672a0396713fbb3c1550ff1940fd3'
17          '44843e54070c6ceb3edfd1a40733fa84'
18          '2329f492f602dbe473d5bc61beef8c9a'
19          'cff557f101a7d2c7e5b066f4687df3f1')
21 build() {
22   true
25 package() {
26   cd "$srcdir"
27   install -d -m755 "$pkgdir"/opt/$pkgname
28   bsdtar -C "$pkgdir"/opt/$pkgname -xf bracket.tgz
30   install -D -m755 bracket.sh "$pkgdir"/usr/bin/bracket
31   install -D -m755 bracket.desktop "$pkgdir"/usr/share/applications/bracket.desktop
33   # fix permissions
34   find "$pkgdir"/opt/$pkgname -type d -exec chmod 755 '{}' '+'
35   find "$pkgdir"/opt/$pkgname -type f -exec chmod 644 '{}' '+'
36   chmod 755 "$pkgdir"/opt/$pkgname/bracket
38   # install license taken from the homepage (it's in the footer)
39   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
42 # vim:set ts=2 sw=2 et: