summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: daa47a309771cdc9f832b0b22bc15a82f3d1534b (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
# Maintainer: castillo055
pkgname=program-shell-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r6.55cd858
pkgrel=1
pkgdesc=""
arch=('any')
url="https://github.com/castillo055/program-shell/"
license=('unknown')
groups=()
depends=()
makedepends=('git'
            'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
backup=()
options=()
install=
source=('git+https://github.com/castillo055/program-shell#branch=main')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	cmake .
	cmake --build . --target program_shell
}

check() {
	cd "$srcdir/${pkgname%-git}"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	cmake --install . --target program_shell --prefix "$pkgdir/usr/"
}