upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / haskell-bindings-uname / trunk / PKGBUILD
blob12756b34c6fcc18f38885e5c65ab33b34de4f069
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Arch Haskell Team <arch-haskell@haskell.org>
4 _hkgname=bindings-uname
5 pkgname=haskell-bindings-uname
6 pkgver=0.1
7 pkgrel=22
8 pkgdesc="Low-level binding to POSIX uname(3)"
9 url="https://hackage.haskell.org/package/bindings-uname"
10 license=("custom:PublicDomain")
11 arch=('x86_64')
12 depends=('ghc-libs')
13 makedepends=('ghc')
14 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
15 sha512sums=('e668b8524cd35e0558d2321f8b89e5b8f9666d43c6950a4b8e56468a84d4664bd7f6c679160fd85370ba3109fb38c00d15bf0ece9da548affcba7ec375b8b394')
17 build() {
18     cd $_hkgname-$pkgver
20     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
21         --prefix=/usr --docdir=/usr/share/doc/$pkgname \
22         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
23     runhaskell Setup build $MAKEFLAGS
24     runhaskell Setup register --gen-script
25     runhaskell Setup unregister --gen-script
26     sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
27     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
30 package() {
31     cd $_hkgname-$pkgver
33     install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
34     install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
35     runhaskell Setup copy --destdir="$pkgdir"