Date: Sunday, May 15, 2022 @ 03:06:18 Author: felixonmars Revision: 1205893
archrelease: copy trunk to community-staging-x86_64 Added: haskell-lsp-types/repos/community-staging-x86_64/PKGBUILD (from rev 1205892, haskell-lsp-types/trunk/PKGBUILD) Deleted: haskell-lsp-types/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 96 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-05-15 03:06:04 UTC (rev 1205892) +++ PKGBUILD 2022-05-15 03:06:18 UTC (rev 1205893) @@ -1,48 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_hkgname=lsp-types -pkgname=haskell-lsp-types -pkgver=1.3.0.1 -pkgrel=73 -pkgdesc="Haskell library for the Microsoft Language Server Protocol, data types" -url="https://github.com/haskell/lsp" -license=("MIT") -arch=('x86_64') -depends=('ghc-libs' 'haskell-aeson' 'haskell-data-default' 'haskell-dependent-sum' - 'haskell-dependent-sum-template' 'haskell-diff' 'haskell-dlist' 'haskell-hashable' - 'haskell-hslogger' 'haskell-lens' 'haskell-network-uri' 'haskell-rope-utf16-splay' - 'haskell-scientific' 'haskell-some' 'haskell-temporary' 'haskell-unordered-containers') -makedepends=('ghc' 'uusi') -source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") -sha512sums=('074a2a383efefd3754ed1c835af913e1ab5fee9f634cb343f392bc8148f1a62030777dbb1104cd0e60cec1405d2cc5067c8fb00f2e902a3ffa52601ff7b02c2b') - -prepare() { - cd $_hkgname-$pkgver - gen-setup -} - -build() { - cd $_hkgname-$pkgver - - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ - --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ - --ghc-option='-pie' - - runhaskell Setup build $MAKEFLAGS - 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 -} - -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 -t "$pkgdir"/usr/share/licenses/$pkgname/ - rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE -} Copied: haskell-lsp-types/repos/community-staging-x86_64/PKGBUILD (from rev 1205892, haskell-lsp-types/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-05-15 03:06:18 UTC (rev 1205893) @@ -0,0 +1,48 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=lsp-types +pkgname=haskell-lsp-types +pkgver=1.3.0.1 +pkgrel=74 +pkgdesc="Haskell library for the Microsoft Language Server Protocol, data types" +url="https://github.com/haskell/lsp" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-data-default' 'haskell-dependent-sum' + 'haskell-dependent-sum-template' 'haskell-diff' 'haskell-dlist' 'haskell-hashable' + 'haskell-hslogger' 'haskell-lens' 'haskell-network-uri' 'haskell-rope-utf16-splay' + 'haskell-scientific' 'haskell-some' 'haskell-temporary' 'haskell-unordered-containers') +makedepends=('ghc' 'uusi') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha512sums=('074a2a383efefd3754ed1c835af913e1ab5fee9f634cb343f392bc8148f1a62030777dbb1104cd0e60cec1405d2cc5067c8fb00f2e902a3ffa52601ff7b02c2b') + +prepare() { + cd $_hkgname-$pkgver + gen-setup +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' + + runhaskell Setup build $MAKEFLAGS + 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 +} + +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 -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}