[arch-commits] Commit in haskell-pango/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Aug 17 17:56:06 UTC 2017
Date: Thursday, August 17, 2017 @ 17:56:05
Author: felixonmars
Revision: 251739
upgpkg: haskell-pango 0.13.3.1-4
GHC 8.2.1 rebuild
Modified:
haskell-pango/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-17 17:53:02 UTC (rev 251738)
+++ PKGBUILD 2017-08-17 17:56:05 UTC (rev 251739)
@@ -3,28 +3,31 @@
pkgname=haskell-pango
pkgver=0.13.3.1
-pkgrel=3
+pkgrel=4
pkgdesc="Binding to the pango library for Gtk2Hs."
url="https://hackage.haskell.org/package/pango"
license=('LGPL2.1')
arch=('i686' 'x86_64')
-depends=('ghc' 'pango' 'haskell-glib' 'haskell-cairo')
-makedepends=("haskell-gtk2hs-buildtools" "mesa")
+depends=('ghc-libs' 'pango' 'haskell-glib' 'haskell-cairo')
+makedepends=('ghc' "haskell-gtk2hs-buildtools" "mesa")
provides=('gtk2hs-pango')
replaces=('gtk2hs-pango')
conflicts=('gtk2hs-pango')
-source=(https://hackage.haskell.org/packages/archive/pango/${pkgver}/pango-${pkgver}.tar.gz)
-sha256sums=('306a4f17d2fe4053b2ddd841a48720513fe391df49080ce61a31b8a0f0633fbb')
+source=("https://github.com/gtk2hs/gtk2hs/archive/843d83548bd076975f1869e6768768b5ed24b268.tar.gz")
+sha256sums=('1de00973cf66154605411892c77b232b0066c98ab2d562595ded3d9d95c4c547')
+prepare() {
+ mv gtk2hs-843d83548bd076975f1869e6768768b5ed24b268/pango pango-$pkgver
+}
+
build() {
cd "${srcdir}/pango-${pkgver}"
-
+
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
- --libsubdir=\$compiler/site-local/\$pkgid
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
sed -i 's|import Foreign.C.Types.*(CULong, CUInt)|import Foreign.C.Types (CULong(..), CUInt(..))|' Graphics/Rendering/Pango/Types.chs
runhaskell Setup build
- runhaskell Setup haddock --hoogle --html
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
@@ -33,11 +36,9 @@
package() {
cd "${srcdir}/pango-${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/pango"
runhaskell Setup copy --destdir="${pkgdir}"
# Remove static libs
More information about the arch-commits
mailing list