summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a80a70967024d87a66634ea0226f76fcaf4bc6c7 (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
# Maintainer: SuicideCatt <random.cat.from.internet@gmail.com>

pkgname=sct_argsp
pkgver=0.2.0
pkgrel=1
pkgdesc="Simple arguments parser for C++20."
url="https://github.com/SuicideCatt/ArgsP"

arch=(any)
depends=(gcc)
makedepends=(git cmake make)

source=("${pkgname}-${pkgver}.tag.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')

prepare()
{
	cd "ArgsP-${pkgver}"
	mkdir -p build
}

build()
{
	cd "ArgsP-${pkgver}/build"
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles"
}

package()
{
	cd "ArgsP-${pkgver}/build"
	make DESTDIR="${pkgdir}" install
}