summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5005db6466c6c58f092fb7aaecc59528b893e35 (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
# Maintainer: Mirko Rovere <04mirko@libero.it>
# Contributor: koraynilay <koray.fra@gmail.com>

pkgname=seashell-git
pkgver=0.0.6.alpha.r1.g58f6bd1
pkgrel=1
pkgdesc="A Fast and Simple UNIX shell in C"
arch=(x86_64)
url="https://github.com/mirko-r/SeaShell"
license=('MIT')
depends=('readline')
makedepends=('cmake' 'make' 'git')
source=("git+https://github.com/Mirko-r/SeaShell.git")
md5sums=("SKIP")

_name="SeaShell"

pkgver() {
	cd "$_name"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/$_name"
	mkdir build
	cd build
	cmake ..
	make
}

package() {
	cd "${srcdir}/$_name/build"
	DESTDIR="$pkgdir/" make install

	# install license
	install -D -m644 "${srcdir}/$_name/LICENSE" "${pkgdir}/usr/share/licenses/${_name/-git$/}/LICENSE"
}