diff options
author | Michal Wojdyla | 2020-10-14 00:24:09 +0200 |
---|---|---|
committer | Michal Wojdyla | 2020-10-14 00:24:09 +0200 |
commit | 4bbaca435a87e5a1527024010a6dc8c58c8b3146 (patch) | |
tree | f160fd27d8dfd359d9ef867b95f70e1089411bae | |
parent | 01fc15478a245c39c7a73257bae1d75c01b99231 (diff) | |
download | aur-4bbaca435a87e5a1527024010a6dc8c58c8b3146.tar.gz |
update to 0.53
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 49 | ||||
-rw-r--r-- | haskell-hssyck.install | 26 |
3 files changed, 23 insertions, 64 deletions
@@ -1,20 +1,16 @@ pkgbase = haskell-hssyck pkgdesc = Fast, lightweight YAML loader and dumper - pkgver = 0.52 + pkgver = 0.53 pkgrel = 1 url = http://hackage.haskell.org/package/HsSyck - install = haskell-hssyck.install - arch = i686 arch = x86_64 - license = custom:BSD3 + license = MIT depends = ghc depends = haskell-syb depends = haskell-hashtables depends = haskell-utf8-string - options = strip - options = staticlibs - source = http://hackage.haskell.org/packages/archive/HsSyck/0.52/HsSyck-0.52.tar.gz - sha256sums = 6c73bcbf8dee55e8a76a8dc9835201a2f995fe1c5c67f255f3f55f60ea9aacc1 + source = https://hackage.haskell.org/packages/archive/HsSyck/0.53/HsSyck-0.53.tar.gz + sha512sums = d1750429595631d4f38264711d27becd82f8de76c5a0e0736205ed080bb92b1ea3a0cfeba33c216801b88dbd992443bae6ae4b8685b51993da3251ac0f76b8b0 pkgname = haskell-hssyck @@ -1,48 +1,37 @@ -# Maintainer: Daniel Nagy <danielnagy at gmx de> - -# custom variables _hkgname=HsSyck -_licensefile=LICENSE - -# PKGBUILD options/directives pkgname=haskell-hssyck -pkgver=0.52 +pkgver=0.53 pkgrel=1 pkgdesc="Fast, lightweight YAML loader and dumper" url="http://hackage.haskell.org/package/${_hkgname}" -license=("custom:BSD3") -arch=('i686' 'x86_64') -makedepends=() +license=('MIT') +arch=('x86_64') depends=("ghc" "haskell-syb" "haskell-hashtables" "haskell-utf8-string") -source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -install=$pkgname.install -options=('strip' 'staticlibs') -sha256sums=('6c73bcbf8dee55e8a76a8dc9835201a2f995fe1c5c67f255f3f55f60ea9aacc1') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('d1750429595631d4f38264711d27becd82f8de76c5a0e0736205ed080bb92b1ea3a0cfeba33c216801b88dbd992443bae6ae4b8685b51993da3251ac0f76b8b0') -# PKGBUILD functions build() { - cd ${srcdir}/${_hkgname}-${pkgver} + cd $_hkgname-$pkgver - runhaskell Setup configure -O -p --enable-split-objs --enable-shared \ - --prefix=/usr --docdir=/usr/share/doc/${pkgname} \ - --libsubdir=\$compiler/site-local/\$pkgid - runhaskell Setup build - runhaskell Setup haddock + 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 $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 ${srcdir}/${_hkgname}-${pkgver} - install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh - install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh - install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries - ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} - runhaskell Setup copy --destdir=${pkgdir} - install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE - rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile} + 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 } + diff --git a/haskell-hssyck.install b/haskell-hssyck.install deleted file mode 100644 index f4215b1d89ab..000000000000 --- a/haskell-hssyck.install +++ /dev/null @@ -1,26 +0,0 @@ -# custom variables -pkgname=haskell-hssyck -HS_DIR=usr/share/haskell/${pkgname} - -# functions -post_install() { - ${HS_DIR}/register.sh - (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) -} - -pre_upgrade() { - ${HS_DIR}/unregister.sh -} - -post_upgrade() { - ${HS_DIR}/register.sh - (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) -} - -pre_remove() { - ${HS_DIR}/unregister.sh -} - -post_remove() { - (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) -} |