summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 4 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 44be1b7cbe54..91cbbe3dc42f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,23 @@
# Maintainer: Dino Morelli <dino@ui3.info>
pkgname=photoname
-pkgver=3.1
+pkgver=3.2
pkgrel=1
pkgdesc='Rename JPEG photo files based on shoot date'
arch=('i686' 'x86_64')
url="http://hub.darcs.net/dino/photoname"
license=('BSD3')
depends=('gmp' 'libexif' 'libffi')
-makedepends=('ghc' 'cabal-install')
-options=('strip')
+makedepends=('stack')
source=("http://hackage.haskell.org/package/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('37935445c01a19e9a6505b7d660ddf01543af14ddc26eb5d2689fb4bdd778434')
+sha256sums=('6a4ee3e631d005b6904444d025ec1ccd9aa4dd0e841f4068806567998e86fcf9')
# PKGBUILD functions
-build() {
- cd ${srcdir}/${pkgname}-${pkgver}
-
- # You can comment this out but it's a good idea to keep your
- # cabal updated.
- cabal update
-
- cabal sandbox init
- cabal install --only-dependencies
- cabal configure -O --prefix=/usr
- cabal build
-}
-
package() {
cd ${srcdir}/${pkgname}-${pkgver}
- cabal copy --destdir=${pkgdir}
+ stack runghc -- ./util/install.hs --prefix=${pkgdir}/usr
}