summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Warner2018-04-14 19:29:19 -0700
committerLeif Warner2018-04-14 19:29:19 -0700
commit01126d60029584d960c246d81e8c92cd6fdd623b (patch)
tree1b90996c998b6f6b0b0683cc92dd99482f02318a
downloadaur-01126d60029584d960c246d81e8c92cd6fdd623b.tar.gz
Initial commit v0.3.0.2
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD44
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..77a07f69ffb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Sun Apr 15 02:29:05 UTC 2018
+pkgbase = haskell-tuple
+ pkgdesc = Various useful functions on tuples, overloaded on tuple size.
+ pkgver = 0.3.0.2
+ pkgrel = 1
+ url = http://hackage.haskell.org/package/tuple
+ arch = x86_64
+ license = BSD-3-Clause
+ makedepends = ghc
+ depends = haskell-onetuple
+ source = http://hackage.haskell.org/packages/archive/tuple/0.3.0.2/tuple-0.3.0.2.tar.gz
+ sha256sums = 2fcb068ffafbe64170e02094a363f83d1725f44f8af963d9dad943a592e89624
+
+pkgname = haskell-tuple
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8fb8c8ec3cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Leif Warner <abimelech@gmail.com>
+
+# custom variables
+_hkgname=tuple
+
+pkgname=haskell-${_hkgname}
+pkgver=0.3.0.2
+pkgrel=1
+license=(BSD-3-Clause)
+pkgdesc="Various useful functions on tuples, overloaded on tuple size."
+url="http://hackage.haskell.org/package/${_hkgname}"
+arch=('x86_64')
+makedepends=("ghc")
+depends=("haskell-onetuple")
+source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+
+sha256sums=('2fcb068ffafbe64170e02094a363f83d1725f44f8af963d9dad943a592e89624')
+
+# PKGBUILD functions
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-executable-dynamic --disable-library-vanilla --enable-shared \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --libsubdir=\$compiler/site-local/\$pkgid --dynlibdir=/usr/lib
+ runhaskell Setup build
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+}
+
+package() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+ install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+
+ runhaskell Setup copy --destdir="${pkgdir}"
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}