summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Flament2017-12-08 14:13:03 +0100
committerDamien Flament2017-12-08 14:13:03 +0100
commitae57264665e0d4e41e2e91f2169d7b5d428e771c (patch)
treed6e2d64703967c13c53d75003d2f6fd461e6e8f5
downloadaur-ae57264665e0d4e41e2e91f2169d7b5d428e771c.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD45
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c8f1e5fd121
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = haskell-ide-engine
+ pkgdesc = The engine for haskell ide-integration. Not an IDE.
+ pkgver = git
+ pkgrel = 1
+ url = https://github.com/haskell/haskell-ide-engine
+ arch = i686
+ arch = x86_64
+ license = custom:BSD3
+ makedepends = git
+ makedepends = haskell-stack-tool
+ source = git://github.com/haskell/haskell-ide-engine.git
+ md5sums = SKIP
+
+pkgname = haskell-ide-engine
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5b6b56341a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Damien Flament <damien.flament at gmx dot com>
+
+pkgname=haskell-ide-engine
+pkgver=git
+pkgrel=1
+pkgdesc="The engine for haskell ide-integration. Not an IDE."
+arch=('i686' 'x86_64')
+url="https://github.com/haskell/haskell-ide-engine"
+license=('custom:BSD3')
+depends=()
+makedepends=('git' 'haskell-stack-tool')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("git://github.com/haskell/${pkgname}.git")
+noextract=()
+md5sums=('SKIP')
+validpgpkeys=()
+
+_STACK_FLAGS="--system-ghc --jobs $(nproc)"
+_STACK="stack $_STACK_FLAGS"
+
+prepare() {
+ cd "${srcdir}/${pkgname}"
+
+ $_STACK build --dry-run
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ $_STACK build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ $_STACK install --local-bin-path "${pkgdir}/usr/bin"
+}