Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / haskell-threads
Commits: cec352f8 by Felix Yan at 2023-10-03T21:13:40+03:00 upgpkg: 0.5.1.8-1: rebuild with threads 0.5.1.8 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,18 @@ +pkgbase = haskell-threads + pkgdesc = Fork threads and wait for their result + pkgver = 0.5.1.8 + pkgrel = 1 + url = https://github.com/basvandijk/threads + arch = x86_64 + license = BSD + makedepends = ghc + makedepends = uusi + makedepends = haskell-hunit + makedepends = haskell-concurrent-extra + makedepends = haskell-test-framework + makedepends = haskell-test-framework-hunit + depends = ghc-libs + source = https://hackage.haskell.org/packages/archive/threads/0.5.1.8/threads-0.5.1.8.tar.gz + sha512sums = 760eb45f359fada510e29dec7466b2e09cf666b107b28d4c707b5374f7f1a0e225666d9dc4982910b3a6e71b3ceceb21d0517233ac55eddedb3923398ec0c419 + +pkgname = haskell-threads ===================================== PKGBUILD ===================================== @@ -3,22 +3,28 @@ _hkgname=threads pkgname=haskell-threads -pkgver=0.5.1.7 +pkgver=0.5.1.8 pkgrel=1 pkgdesc="Fork threads and wait for their result" url="https://github.com/basvandijk/threads" license=("BSD") arch=('x86_64') depends=('ghc-libs') -makedepends=('ghc') +makedepends=('ghc' 'uusi' 'haskell-hunit' 'haskell-concurrent-extra' 'haskell-test-framework' + 'haskell-test-framework-hunit') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('6f37439d14629ece14865bc4067b6531ebc9d5061868e96c5073164453cda5d48a019667a655eac30cb9828d8849a6adc31ee824cc5ebe8513b1f320f9ac46fb') +sha512sums=('760eb45f359fada510e29dec7466b2e09cf666b107b28d4c707b5374f7f1a0e225666d9dc4982910b3a6e71b3ceceb21d0517233ac55eddedb3923398ec0c419') + +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 \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm runhaskell Setup build $MAKEFLAGS runhaskell Setup register --gen-script @@ -27,6 +33,11 @@ build() { 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 View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-threads/-/commit/cec352f8dbae2b908fd2fbd3561736a3f7c5be1d -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-threads/-/commit/cec352f8dbae2b908fd2fbd3561736a3f7c5be1d You're receiving this email because of your account on gitlab.archlinux.org.