summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author71e6fd522020-02-29 13:31:41 +0800
committer71e6fd522020-02-29 13:31:41 +0800
commit045743aa6f59b623c7c4d94c51cadab338d0310d (patch)
treea1be006e02bd02f62d83f5bed0f3356667b386e3
downloadaur-045743aa6f59b623c7c4d94c51cadab338d0310d.tar.gz
1.0.1.2
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD42
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2308d9d6569
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = haskell-czipwith
+ pkgdesc = CZipWith class and deriving via TH
+ pkgver = 1.0.1.2
+ pkgrel = 1
+ url = https://hackage.haskell.org/package/czipwith
+ arch = x86_64
+ license = BSD
+ makedepends = ghc
+ depends = ghc-libs
+ depends = haskell-template-haskell
+ depends = haskell-transformers
+ source = https://hackage.haskell.org/packages/archive/czipwith/1.0.1.2/czipwith-1.0.1.2.tar.gz
+ sha512sums = 8902c1a3486b46d8dc7fdd7e2b5a62396d9e6f98e10c4b8872eb8fb4c3201decd54a201b30d48a7fcada7638872bc3ee018ebe9e44eeacad1871d7338337ed4d
+
+pkgname = haskell-czipwith
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8e840973051
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*
+!.*
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f89d8f960a6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: 71e6fd52 <71e6fd52 at gmail dot com>
+
+_hkgname=czipwith
+pkgname=haskell-czipwith
+pkgver=1.0.1.2
+pkgrel=1
+pkgdesc="CZipWith class and deriving via TH"
+url='https://hackage.haskell.org/package/czipwith'
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-template-haskell' 'haskell-transformers')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8902c1a3486b46d8dc7fdd7e2b5a62396d9e6f98e10c4b8872eb8fb4c3201decd54a201b30d48a7fcada7638872bc3ee018ebe9e44eeacad1871d7338337ed4d')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ cd $_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
+}