desktop/darcs/PKGBUILD

41 lines
1.1 KiB
Bash
Raw Normal View History

2015-07-16 06:22:00 +08:00
# Contribution from Arch https://aur.archlinux.org/packages/darcs/
pkgname=darcs
2016-02-26 21:04:03 +08:00
pkgver=2.10.3
pkgrel=1
pkgdesc="Decentralized replacement for CVS with roots in quantum mechanics."
2013-02-17 06:59:36 +08:00
arch=('x86_64')
url="http://darcs.net"
license=('GPL')
2015-05-26 17:07:21 +08:00
depends=('curl' 'libffi')
makedepends=('ghc' 'cabal-install')
source=("http://darcs.net/releases/$pkgname-$pkgver.tar.gz")
2016-02-26 21:04:03 +08:00
sha1sums=('4b2f49a90c7deacb98636c6114a8ebd97ebdb457')
build() {
2015-05-26 17:07:21 +08:00
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() {
2015-05-26 17:07:21 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
2015-05-26 17:07:21 +08:00
cabal copy --destdir=${pkgdir}
2015-05-26 17:07:21 +08:00
# 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
2012-01-08 01:27:18 +08:00
2015-05-26 17:07:21 +08:00
chmod 755 ${pkgdir}/usr/share/man/man1/${pkgname}.1
2016-02-26 21:04:03 +08:00
}