summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 937a21d327ef08706e59214de800477a3e7e5ba6 (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
# Maintainer: badcast <lmecomposer@gmail.com>
_pkgbase="library-brainmap"
pkgname=${_pkgbase}
pkgver=1.0.2
pkgrel=1
url="https://github.com/badcast/${_pkgbase}"
pkgdesc="Brain Neuron Map - for Generate Maze and Path-Finder interface."
arch=("any")
license=('MIT')
depends=('glibc')
replaces=('libacross')
makedepends=('make' 'cmake' 'gcc')
source=("${pkgname}-${pkgver}.tar.gz::https://codeload.github.com/badcast/${pkgname}/tar.gz/refs/tags/v${pkgver}")
sha256sums=('025d63d0cfac1a507fc5444aec176dcf058f646872b0baddabaf7910505319c0')

build(){
   cmake -S "${srcdir}/${_pkgbase}-${pkgver}" -B "${srcdir}/build" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/

   cmake --build "${srcdir}/build"
}

check() {
    cd "${srcdir}/build"
	ctest -R
}

package(){
    DESTDIR="${pkgdir}" cmake --install "${srcdir}/build"

    install -Dm644 "${srcdir}/${_pkgbase}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}