summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDino Morelli2015-06-28 16:50:05 -0400
committerDino Morelli2015-06-28 16:50:05 -0400
commitc91f245ae2e7c32551d93ee72570087ebcbcfb18 (patch)
treea12f634d00ccb6cc27fd1fafe0fb4dfc5c742229
downloadaur-c91f245ae2e7c32551d93ee72570087ebcbcfb18.tar.gz
Initial commit
Moving this package over from the old pre-4 AUR.
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..82d5bbb3be9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = photoname
+ pkgdesc = Rename JPEG photo files based on shoot date
+ pkgver = 3.1
+ pkgrel = 1
+ url = http://hub.darcs.net/dino/photoname
+ arch = i686
+ arch = x86_64
+ license = BSD3
+ makedepends = ghc
+ makedepends = cabal-install
+ depends = gmp
+ depends = libexif
+ options = strip
+ source = http://hackage.haskell.org/package/photoname-3.1/photoname-3.1.tar.gz
+ sha256sums = 37935445c01a19e9a6505b7d660ddf01543af14ddc26eb5d2689fb4bdd778434
+
+pkgname = photoname
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..44be1b7cbe5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Dino Morelli <dino@ui3.info>
+
+pkgname=photoname
+pkgver=3.1
+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')
+source=("http://hackage.haskell.org/package/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
+
+sha256sums=('37935445c01a19e9a6505b7d660ddf01543af14ddc26eb5d2689fb4bdd778434')
+
+
+# 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}
+}