[arch-commits] Commit in haskell-http-common/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jul 30 20:40:29 UTC 2020
Date: Thursday, July 30, 2020 @ 20:40:29
Author: felixonmars
Revision: 665988
upgpkg: haskell-http-common 0.8.2.1-1: rebuild with http-common 0.8.2.1
Modified:
haskell-http-common/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-30 20:33:31 UTC (rev 665987)
+++ PKGBUILD 2020-07-30 20:40:29 UTC (rev 665988)
@@ -2,10 +2,10 @@
_hkgname=http-common
pkgname=haskell-http-common
-pkgver=0.8.2.0
-pkgrel=96
+pkgver=0.8.2.1
+pkgrel=1
pkgdesc="Common types for HTTP clients and servers"
-url="https://github.com/afcowie/http-common"
+url="https://github.com/istathar/http-common"
license=('BSD')
arch=('x86_64')
depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-blaze-builder' 'haskell-case-insensitive'
@@ -12,8 +12,13 @@
'haskell-network' 'haskell-unordered-containers')
makedepends=('ghc')
source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('e02e9b08235483220856ed1cacebea1910ec41451d7ec68b86a2193f5c050f74ef3747a4a2c35c560795727d9f62ee6485cfd1ed5597fb7645ce6339f969851a')
+sha512sums=('da165d118575f1958c300c2b389b28cd4e0d720be79e776b5e72444b30b7b0369f336d44283d8b71c7758c1405e64a13e5591971da2e6b29cf7786233f2e04dc')
+prepare() {
+ cd $_hkgname-$pkgver
+ echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
build() {
cd $_hkgname-$pkgver
@@ -33,6 +38,6 @@
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 "LICENCE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
- rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENCE"
+ install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
}
More information about the arch-commits
mailing list