updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / photoname / PKGBUILD
blob44688f0b48cb2fba55a03c81c5bf371c1a08421c
1 # custom variables
2 _hkgname=photoname
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=photoname
7 pkgver=3.0.0
8 pkgrel=18
9 pkgdesc="Rename JPEG photo files based on shoot date"
10 url="http://ui3.info/d/proj/photoname.html"
11 license=("BSD3")
12 arch=('i686' 'x86_64')
13 makedepends=("ghc=7.0.3-2"
14              "haskell-directory=1.1.0.0"
15              "haskell-exif=3000.0.0"
16              "haskell-filepath=1.2.0.0"
17              "haskell-mtl=2.0.1.0"
18              "haskell-old-locale=1.0.0.2"
19              "haskell-parsec=3.1.1"
20              "haskell-time=1.2.0.3"
21              "haskell-unix=2.4.2.0")
22 depends=()
23 options=('strip')
24 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
26 sha256sums=("8f67c5fc53adcaab713439df14f43f11617c07235b402660023f66cbfca07b03")
28 # PKGBUILD functions
29 build() {
30     cd ${srcdir}/${_hkgname}-${pkgver}
31     runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
32     runhaskell Setup build
35 package() {
36     cd ${srcdir}/${_hkgname}-${pkgver}
37     runhaskell Setup copy --destdir=${pkgdir}