desktop/darcs/PKGBUILD

39 lines
1.0 KiB
Bash
Raw Normal View History

pkgname=darcs
2017-02-04 02:33:40 +08:00
pkgver=2.12.5
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')
2017-02-04 02:33:40 +08:00
depends=('curl')
2015-05-26 17:07:21 +08:00
makedepends=('ghc' 'cabal-install')
source=("http://darcs.net/releases/$pkgname-$pkgver.tar.gz")
2017-02-04 02:33:40 +08:00
sha1sums=('b2316ad160d96a98bd685f077e2c109ed1bbb127')
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
}