summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDino Morelli2016-10-02 18:29:51 -0400
committerDino Morelli2016-10-02 18:29:51 -0400
commite5a77f93f9de733c5a239fbd1b1bf4aafa46a165 (patch)
tree7bf708a337ac19c661b54f8b0a2cfed47db79aeb
parentc91f245ae2e7c32551d93ee72570087ebcbcfb18 (diff)
downloadaur-e5a77f93f9de733c5a239fbd1b1bf4aafa46a165.tar.gz
Project builds with stack now instead of cabal-install
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD22
2 files changed, 11 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 82d5bbb3be9..eb9d0be8471 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,20 @@
+# Generated by mksrcinfo v8
+# Sun Oct 2 22:13:27 UTC 2016
pkgbase = photoname
pkgdesc = Rename JPEG photo files based on shoot date
- pkgver = 3.1
+ pkgver = 3.2
pkgrel = 1
url = http://hub.darcs.net/dino/photoname
arch = i686
arch = x86_64
license = BSD3
- makedepends = ghc
- makedepends = cabal-install
+ makedepends = stack
depends = gmp
depends = libexif
+ depends = libffi
options = strip
- source = http://hackage.haskell.org/package/photoname-3.1/photoname-3.1.tar.gz
- sha256sums = 37935445c01a19e9a6505b7d660ddf01543af14ddc26eb5d2689fb4bdd778434
+ source = http://hackage.haskell.org/package/photoname-3.2/photoname-3.2.tar.gz
+ sha256sums = 6a4ee3e631d005b6904444d025ec1ccd9aa4dd0e841f4068806567998e86fcf9
pkgname = photoname
diff --git a/PKGBUILD b/PKGBUILD
index 44be1b7cbe5..91cbbe3dc42 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
}