Date: Thursday, March 23, 2023 @ 23:05:26 Author: felixonmars Revision: 1427343
archrelease: copy trunk to community-staging-x86_64 Added: haskell-singleton-bool/repos/community-staging-x86_64/ haskell-singleton-bool/repos/community-staging-x86_64/PKGBUILD (from rev 1427342, haskell-singleton-bool/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-singleton-bool/repos/community-staging-x86_64/PKGBUILD (from rev 1427342, haskell-singleton-bool/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2023-03-23 23:05:26 UTC (rev 1427343) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=singleton-bool +pkgname=haskell-singleton-bool +pkgver=0.1.6 +pkgrel=9 +pkgdesc="Type level booleans" +url="https://github.com/phadej/singleton-bool" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-boring' 'haskell-dec' 'haskell-some') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('7f14909f672aa18e0c2064fb735f894a01d5a450e6fc7a6ac28fa5cc7dd1fb2ea1a5a58a0654a98d79aae49a4c537ace5d5f6eb30e68fe0e69e0992e7e510b86') + +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 \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + 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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}