Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit b79d686

Browse files
committed
archrelease: copy trunk to community-staging-x86_64
git-svn-id: file:///srv/repos/svn-community/svn@744663 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 7c81f73 commit b79d686

File tree

1 file changed

+43
-0
lines changed
  • haskell-pipes-http/repos/community-staging-x86_64

1 file changed

+43
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Maintainer: Felix Yan <[email protected]>
2+
# Contributor: Arch Haskell Team <[email protected]>
3+
4+
_hkgname=pipes-http
5+
pkgname=haskell-pipes-http
6+
pkgver=1.0.6
7+
pkgrel=234
8+
pkgdesc="HTTP client with pipes interface"
9+
url="https://hackage.haskell.org/package/${_hkgname}"
10+
license=("BSD")
11+
arch=('x86_64')
12+
depends=('ghc-libs' "haskell-http-client" "haskell-http-client-tls" "haskell-pipes")
13+
makedepends=('ghc')
14+
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
15+
sha512sums=('b58e5751863d79c08066846fb5959870cf6673e27297acd3b7980b209321a636fdf564c4c08666313c81f7c6c55f4d1307892bc6a59a01a025a87436d5591774')
16+
17+
prepare() {
18+
cd $_hkgname-$pkgver
19+
sed -i 's/< *0.7/<1/' $_hkgname.cabal
20+
}
21+
22+
build() {
23+
cd $_hkgname-$pkgver
24+
25+
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
26+
--prefix=/usr --docdir=/usr/share/doc/$pkgname \
27+
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
28+
runhaskell Setup build $MAKEFLAGS
29+
runhaskell Setup register --gen-script
30+
runhaskell Setup unregister --gen-script
31+
sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
32+
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
33+
}
34+
35+
package() {
36+
cd $_hkgname-$pkgver
37+
38+
install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
39+
install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
40+
runhaskell Setup copy --destdir="$pkgdir"
41+
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
42+
rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
43+
}

0 commit comments

Comments
 (0)