summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d79c3d641ba63da550c54830d254595a4dd4ea4f (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
# Maintainer: Ian Lester <aur.lester.snowy907silomails.com>
pkgname=schemesh
pkgver=v1.0.0
pkgrel=2
pkgdesc="Fusion between a Unix shell and a Lisp REPL"
arch=('x86_64')
url="https://github.com/cosmos72/schemesh"
license=('GPL-2.0-only')
groups=()
depends=('chez-scheme' 'lz4' 'ncurses' 'zlib')
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/cosmos72/schemesh')
noextract=()
sha256sums=('SKIP')

prepare() {
	cd "$srcdir/${pkgname%}"
	git checkout -f "${pkgver}"
	# Remove 'dir' binary that conflicts with coreutil's /usr/bin/dir as
	# schemesh has a 'dir' builtin anyway
	sed -i 's/default: countdown dir/default: countdown/' Makefile
	sed -i 's/install:     install_countdown   install_dir/install: install_countdown/' Makefile
}

build() {
	cd "$srcdir/${pkgname%}"
	make prefix=/usr -j
}

package() {
	cd "$srcdir/${pkgname%}"
	make prefix=/usr DESTDIR="$pkgdir/" install
}