blob: 1b222c16a0f642bffd2a0344f3a732f4014c6c2a (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Matt Coffin <mcoffin13@gmail.com>
pkgname=psc-package-git
pkgver=v0.5.1.r6.b97b29b
pkgrel=1
epoch=
pkgdesc="A package manager for PureScript based on package sets"
arch=('x86_64')
url="https://github.com/purescript/psc-package"
license=('BSD3')
groups=()
depends=()
makedepends=('ghc' 'stack' 'git')
checkdepends=()
optdepends=()
provides=('psc-package')
conflicts=('psc-package' 'psc-package-bin')
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::git://github.com/purescript/psc-package.git#branch=master")
noextract=()
sha1sums=('SKIP')
validpgpkeys=()
pkgver() {
cd "$srcdir/$pkgname"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/$pkgname"
stack build
}
check() {
cd "$srcdir/$pkgname"
stack test
}
package() {
cd "$pkgname"
find .stack-work -type f -name 'psc-package' | grep -v 'install' | xargs install -D -m 0755 -t "$pkgdir/usr/bin"
if [ -e LICENSE ]; then
install -D -m 0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
fi
}
|