Date: Tuesday, August 23, 2022 @ 10:02:39 Author: felixonmars Revision: 1274957
upgpkg: haskell-libffi 0.2-1: rebuild with libffi 0.2 Modified: haskell-libffi/trunk/PKGBUILD ----------+ PKGBUILD | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-08-23 09:58:44 UTC (rev 1274956) +++ PKGBUILD 2022-08-23 10:02:39 UTC (rev 1274957) @@ -3,23 +3,24 @@ _hkgname=libffi pkgname=haskell-libffi -pkgver=0.1 -pkgrel=27 +pkgver=0.2 +pkgrel=1 pkgdesc="A binding to libffi" -url="https://hackage.haskell.org/package/${_hkgname}" +url="http://haskell.org/haskellwiki/Library/libffi" license=("BSD") arch=('x86_64') depends=('ghc-libs') makedepends=('ghc') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('ca6dcdec14f12c565c48143aed72a022960978148759d9ee2ababf6f7e008a5cb5d152d4f10a2bfef511e4e852a4b30f1bc81928b249461c0b67817b1c74e0b3') +sha512sums=('cd46cf80a2040a88e12260785126247b8d230df00c90d23e32a4799de076898d1206c77f080f687f8da52e40de78a55840c38bc25d87d0f9623e04b1e37a3a7a') build() { cd $_hkgname-$pkgver runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + -f-ghc-bundled-libffi runhaskell Setup build $MAKEFLAGS runhaskell Setup register --gen-script runhaskell Setup unregister --gen-script @@ -27,6 +28,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test --show-details=direct +} + package() { cd $_hkgname-$pkgver
