[arch-commits] Commit in haskell-casa-types/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Mar 20 04:58:57 UTC 2020


    Date: Friday, March 20, 2020 @ 04:58:56
  Author: felixonmars
Revision: 601400

upgpkg: haskell-casa-types 0.0.1-2: rebuild with casa-client 0.0.1, casa-types 0.0.1

Modified:
  haskell-casa-types/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-20 04:52:59 UTC (rev 601399)
+++ PKGBUILD	2020-03-20 04:58:56 UTC (rev 601400)
@@ -2,9 +2,8 @@
 
 _hkgname=casa-types
 pkgname=haskell-casa-types
-pkgver=0.0.0.20191219
-_commit=3dee7dc1594e4d0ea2b101ad933ce23b4bc3c451
-pkgrel=36
+pkgver=0.0.1
+pkgrel=2
 pkgdesc="Content Addressable Storage Archive types"
 url="https://github.com/fpco/casa"
 license=('MIT')
@@ -12,16 +11,16 @@
 depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-base16-bytestring'
          'haskell-hashable' 'haskell-path-pieces' 'haskell-persistent')
 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=('6296898e8ffdd20ad7dc5aa52a99078fa71bb2384a8631761255e19b7b670a1d349715241be8cb2ee84fd52ee7ac70b4458adab3a86ebe63b9c976f7bac44f98')
 
 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 \
@@ -34,16 +33,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 -t "${pkgdir}"/usr/share/licenses/${pkgname}/
     rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
 }



More information about the arch-commits mailing list