[arch-commits] Commit in haskell-infer-license/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jul 29 03:20:01 UTC 2018


    Date: Sunday, July 29, 2018 @ 03:20:01
  Author: felixonmars
Revision: 363930

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-infer-license/repos/community-staging-x86_64/
  haskell-infer-license/repos/community-staging-x86_64/PKGBUILD
    (from rev 363929, haskell-infer-license/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: haskell-infer-license/repos/community-staging-x86_64/PKGBUILD (from rev 363929, haskell-infer-license/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-29 03:20:01 UTC (rev 363930)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=infer-license
+pkgname=haskell-infer-license
+pkgver=0.2.0
+pkgrel=2
+pkgdesc="Infer software license from a given license file"
+url="https://github.com/sol/infer-license"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-text-metrics')
+makedepends=('ghc' 'haskell-hspec')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('266651d9890ccbd9281ef3f9cd16df10f9c6fa8449990b63e956bd13559b1ef773c9dee92ad80de5b9d03599ac6a09766a1f4f3425884007982ab14d01697d45')
+
+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"
+}



More information about the arch-commits mailing list