summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfelixonmars <felixonmars@9fca08f4-af9d-4005-b8df-a31f2cc04f65>2019-11-24 15:33:24 +0000
committerfelixonmars <felixonmars@9fca08f4-af9d-4005-b8df-a31f2cc04f65>2019-11-24 15:33:24 +0000
commit9089ed7c894d9c804c63f9f6dd169eeb1466a504 (patch)
treeb9f70545ee99ac014adb4f15d6c1a6dbeaf442dc
parent80e43c9649d9c6b0801e7633261a40a02b72151e (diff)
archrelease: copy trunk to community-staging-x86_64
git-svn-id: file:///srv/repos/svn-community/svn@533061 9fca08f4-af9d-4005-b8df-a31f2cc04f65
-rw-r--r--haskell-skylighting/repos/community-staging-x86_64/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/haskell-skylighting/repos/community-staging-x86_64/PKGBUILD b/haskell-skylighting/repos/community-staging-x86_64/PKGBUILD
new file mode 100644
index 00000000000..8f0ea5c58ff
--- /dev/null
+++ b/haskell-skylighting/repos/community-staging-x86_64/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+_hkgname=skylighting
+pkgname=haskell-skylighting
+pkgver=0.8.2.3
+pkgrel=1
+pkgdesc="Syntax highlighting library"
+url="https://github.com/jgm/skylighting"
+license=('GPL2')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-skylighting-core')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('53aefc987900526eab1b5122ccc7236e81beb016fe96a4b1dfa4981ccf690b35e8fc0fe635e637e987de5366e6f7f6105db811820245329d3fda43550cbfe837')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-executable
+ runhaskell Setup build
+ 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"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}