summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc660abe7e75fb2381a53c80bc2aa549b5b6187e (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
# Maintainer: Marcos GutiƩrrez Alonso <margual56@gmail.com>

pkgname=minesweeper-cli-git
pkgver=1.0.1
pkgrel=1
pkgdesc="Command Line version of MineSweeper for Unix-like systems"
arch=('i686' 'x86_64')
url="https://github.com/margual56/minesweeper-cli"
license=('MIT')

depends=()
makedepends=('gcc')
checkdepends=()
optdepends=()

source=("MineSweeper::git+${url}.git")
noextract=()
md5sums=('SKIP')

prepare() {
	mv "./MineSweeper" "./${pkgname}"	
	mkdir -p "${pkgdir}/usr/bin"
}

build() {
	cd "${srcdir}/${pkgname}"
	git checkout combined
	make
}

package() {
	install -Dm755 "${srcdir}/${pkgname}/mine" "${pkgdir}/usr/bin/minesweeper"
}