summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fca2cee0526ab4a658effe02f1490a1d399decf0 (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: Mads Mogensen <mads256h at gmail dot com>

pkgname=hacker-typer
pkgver=1.2
pkgrel=3
pkgdesc="A program that mimics the website hackertyper.com on your terminal."
arch=('any')
url="https://github.com/mads256h/hacker-typer"
license=('GPL3')
depends=('ncurses')
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mads256h/hacker-typer/archive/v${pkgver}.tar.gz")
sha256sums=('1b664345f90f54821d27656ed6cb27c5e6c315e0f3abf2753a09b9289af85da9')

build() {
    # Project does not support in-source builds
    mkdir "${srcdir}/build"
    
    pushd "${srcdir}/build"
    
    # Configure project
    cmake "${srcdir}/${pkgname}-${pkgver}" -DCMAKE_BUILD_TYPE=MinSizeRel

    # Build project
    cmake --build . --config MinSizeRel

    popd
}

package() {
    # Install the program
    install -Dm755 "${srcdir}/build/src/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}