diff options
author | Solomon Choina | 2018-06-08 18:40:58 -0400 |
---|---|---|
committer | Solomon Choina | 2018-06-08 18:40:58 -0400 |
commit | 4cabf2c12dd47b299334f4777834fa5439e7be36 (patch) | |
tree | 4c31f859a850d56065fbdf8e0ae7c0fc3c40737b | |
download | aur-4cabf2c12dd47b299334f4777834fa5439e7be36.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b18398ce3276 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = haskell-gi-glib + pkgdesc = Bindings for GLib, autogenerated by haskell-gi. + pkgver = 2.0.16 + pkgrel = 1 + url = https://hackage.haskell.org/package/gi-glib + arch = i686 + arch = x86_64 + license = BSD + makedepends = ghc + depends = ghc-libs + depends = haskell-gi-base + depends = haskell-base + depends = haskell-bytestring + depends = haskell-containers + depends = haskell-gi + depends = haskell-gi-overloading + depends = haskell-text + depends = haskell-transformers + depends = gobject-introspection + source = https://hackage.haskell.org/packages/archive/gi-glib/2.0.16/gi-glib-2.0.16.tar.gz + sha256sums = 1cbb6289dcd628ed6044c75daff3237ac5c87ef793c03ecf78df3380bf2e140e + +pkgname = haskell-gi-glib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..63e36e5bef33 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ + +# Maintainer: Solomon Choina <shlomochoina@gmail.com> +pkgname=haskell-gi-glib +_hkgname=gi-glib +pkgver=2.0.16 +pkgrel=1 +pkgdesc="Bindings for GLib, autogenerated by haskell-gi." +url=https://hackage.haskell.org/package/gi-glib +license=('BSD') +arch=('i686' 'x86_64') +depends=("ghc-libs" 'haskell-gi-base' 'haskell-base' 'haskell-bytestring' 'haskell-containers' 'haskell-gi' 'haskell-gi-overloading' 'haskell-text' 'haskell-transformers' 'gobject-introspection') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha256sums=('1cbb6289dcd628ed6044c75daff3237ac5c87ef793c03ecf78df3380bf2e140e') + + +build() { + cd "${srcdir}/${_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 + runhaskell Setup build + runhaskell Setup haddock + 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" + install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +} |