desktop/darcs/PKGBUILD
2016-02-26 14:04:03 +01:00

41 lines
1.1 KiB
Bash

# Contribution from Arch https://aur.archlinux.org/packages/darcs/
pkgname=darcs
pkgver=2.10.3
pkgrel=1
pkgdesc="Decentralized replacement for CVS with roots in quantum mechanics."
arch=('x86_64')
url="http://darcs.net"
license=('GPL')
depends=('curl' 'libffi')
makedepends=('ghc' 'cabal-install')
source=("http://darcs.net/releases/$pkgname-$pkgver.tar.gz")
sha1sums=('4b2f49a90c7deacb98636c6114a8ebd97ebdb457')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# I've seen this cause a problem in the past. If necessary, do a
# cabal update manually and comment it out here.
cabal update
cabal sandbox init
cabal install --only-dependencies
cabal configure -O --prefix=/usr
cabal build
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
cabal copy --destdir=${pkgdir}
# darcs is both a binary and a library. This packaging exists
# solely to give the user the darcs binary. Unfortunately the only
# way I found to prevent installation of these files was to blow
# away this dir just prior to packaging:
rm -r ${pkgdir}/usr/lib
chmod 755 ${pkgdir}/usr/share/man/man1/${pkgname}.1
}