Date: Friday, March 20, 2020 @ 04:59:51 Author: felixonmars Revision: 601402
upgpkg: haskell-casa-client 0.0.1-1: rebuild with casa-client 0.0.1, casa-types 0.0.1 Modified: haskell-casa-client/trunk/PKGBUILD ----------+ PKGBUILD | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-20 04:59:04 UTC (rev 601401) +++ PKGBUILD 2020-03-20 04:59:51 UTC (rev 601402) @@ -2,9 +2,8 @@ _hkgname=casa-client pkgname=haskell-casa-client -pkgver=0.0.0.20191219 -_commit=3dee7dc1594e4d0ea2b101ad933ce23b4bc3c451 -pkgrel=52 +pkgver=0.0.1 +pkgrel=1 pkgdesc="Content Addressable Storage Archive client" url="https://github.com/fpco/casa" license=('MIT') @@ -15,16 +14,16 @@ 'haskell-network-uri' 'haskell-resourcet' 'haskell-th-lift' 'haskell-unliftio-core' 'haskell-unordered-containers') makedepends=('ghc') -source=(casa-$_commit.tar.gz::https://github.com/fpco/casa/archive/$_commit.tar.gz) -sha512sums=('8f8bd2ffbd250de61aeeafa85c3b3921599aa3fef031966d30581d5abf29bff2f3749350c312d10145331fc054642bf184eabcea69be9baad9be226cb5e4991f') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('2df03a0b1c2e01f2d24728e96fe446a25b630f5495c4e9995bcbde1ee9da530df1c6b40dde954cfaf6de2af6036fa6cfda7d9957b22106316557cc57d64114fa') prepare() { - cd casa-$_commit/$_hkgname + cd $_hkgname-$pkgver echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs } build() { - cd casa-$_commit/$_hkgname + cd $_hkgname-$pkgver runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ @@ -37,16 +36,16 @@ } check() { - cd casa-$_commit/$_hkgname + cd $_hkgname-$pkgver runhaskell Setup test } package() { - cd casa-$_commit/$_hkgname + 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" + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE }
