blob: 5e9fee0fa3fca8fd26f364ef4c3e7cb5727f2ce8 (
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
|
#contributor: tantalum <tantalum at online dot de>
pkgname=pfds-guile-git
pkgver=20130202
pkgrel=1
pkgdesc="Purely Functional Data Structures in Scheme. Installs the files for use with Guile."
arch=(any)
url="https://github.com/ijp/pfds"
license=(custom)
depends=("guile>=2")
makedepends=(git)
conflicts=(pfds-guile)
provides=()
source=()
md5sums=(SKIP)
_gitname=pfds
_gitroot="git://github.com/ijp"
build() {
cd "$srcdir"
msg "Connecting to GIT server..."
if [ -d "$_gitname" ] ; then
cd "$_gitname" && git pull origin
cd "$srcdir"
msg "The local files are updated."
else
git clone --depth=1 "$_gitroot/$_gitname"
fi
msg "GIT checkout done or server timeout"
}
package() {
cd "$srcdir/$_gitname"
t="$pkgdir/usr/share/guile/site/$_gitname"
install -d "$t"
install -d "$t/private"
# guile doesn't look for files with the .sls extension by default
for k in *.sls private/*.sls; do
cp -r "$k" "$t/${k%.sls}.scm"
done
}
|