git-annex: build_style=haskell-stack, and bump to lts-3.5.

This commit is contained in:
Christian Neukirchen 2015-09-14 16:14:30 +02:00
parent 2c77f4d4f6
commit b781b12846
1 changed files with 6 additions and 15 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'git-annex'
pkgname=git-annex
version=5.20150824
revision=1
_stackage="lts-3.0"
revision=2
nocross=yes
create_wrksrc=yes
build_style=haskell-stack
stackage="lts-3.5"
hostmakedepends="ghc stack pkg-config"
makedepends="gsasl-devel gnutls-devel libxml2-devel rsync curl lsof gnupg2"
# depends are utilities required by git-annex
@ -14,17 +14,8 @@ maintainer="Evan Deaubl <evan@deaubl.name>"
license="GPL-3"
homepage="http://git-annex.branchable.com"
distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum="45088dd5ff5a63ca38965e60843e42c1b8424b3437b58af68929cf61ef0819e4"
checksum=45088dd5ff5a63ca38965e60843e42c1b8424b3437b58af68929cf61ef0819e4
do_build() {
export STACK_ROOT=$wrksrc/.stack
rm -rf $wrksrc/${pkgname}-${version}/standalone/android/tmp
stack init --force --resolver ${_stackage}
stack ${makejobs} build
}
do_install() {
export STACK_ROOT=$wrksrc/.stack
vmkdir usr/bin
stack install --local-bin-path=${DESTDIR}/usr/bin
post_extract() {
rm -rf standalone/android/tmp
}