upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / haskell-data-default-instances-containers / trunk / PKGBUILD
blob0776f555da8fb8b716aef006b9b8b225073eb393
1 # Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
3 _hkgname=data-default-instances-containers
4 pkgname=haskell-data-default-instances-containers
5 pkgver=0.0.1
6 pkgrel=36
7 pkgdesc="Default instances for types in containers"
8 url="https://hackage.haskell.org/package/${_hkgname}"
9 license=('BSD')
10 arch=('x86_64')
11 depends=('ghc-libs' 'haskell-data-default-class')
12 makedepends=('ghc')
13 source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
14 sha512sums=('a12352eb0484ad772b16674b2ef8145b3733473f716c182841d6378d8a2d3b196e8fc966afd7c335e81e924ea83088a9c67c4aaddb14a87a7a816cbe27236bfd')
16 build() {
17     cd ${srcdir}/${_hkgname}-${pkgver}
18     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
19         --prefix=/usr --docdir=/usr/share/doc/$pkgname \
20         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid -fnetwork-uri
21     runhaskell Setup build $MAKEFLAGS
22     runhaskell Setup register   --gen-script
23     runhaskell Setup unregister --gen-script
24     sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
25     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
28 package() {
29     cd $_hkgname-$pkgver
30     
31     install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
32     install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
33     runhaskell Setup copy --destdir="$pkgdir"
34     install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
35     rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE