diff --git a/srcpkgs/git-annex/template b/srcpkgs/git-annex/template index 25daa86baa8..fc73e7f71f2 100644 --- a/srcpkgs/git-annex/template +++ b/srcpkgs/git-annex/template @@ -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 " 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 }