blob: 6fabf54510f3d5b4de68c390b2159789e10347d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: spaceships <https://aur.archlinux.org/account/spaceships>
# Contributor: Brent Carmer <bcarmer@gmail.com>
pkgname=ghcup-git
_pkgname=ghcup
pkgver=0.0.7.r100.g5c1d711
pkgrel=1
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
license=('BSD')
depends=()
pkgdesc='Painless installation of GHC toolchain'
url='https://gitlab.haskell.org/haskell/ghcup'
arch=('any')
md5sums=('SKIP')
install=ghcup-git.install
source=('git+https://gitlab.haskell.org/haskell/ghcup.git')
package() {
mkdir -p $pkgdir/usr/bin
install $srcdir/ghcup/ghcup $pkgdir/usr/bin
install -Dm644 $srcdir/ghcup/.bash-completion $pkgdir/usr/share/bash-completion/completions/ghcup
}
|