summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ecbaa5312e5d08d93675083be5258725e959ee2 (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
# Maintainer: Luiz Henrique Laurini <luizhenriquelaurini at gmail dot com>
pkgname=textar
pkgver=0.2.0
pkgrel=1
pkgdesc="tar-like program for creating plain text archives from plain text files"
arch=('x86_64')
url="https://github.com/LHLaurini/textar"
license=('MIT')
makedepends=('cmake')
options=()
source=(https://github.com/LHLaurini/$pkgname/archive/v$pkgver.tar.gz)
md5sums=('4a1ac5a579da6bc02147bc31ef5f8b95')

build()
{
	cd "$pkgname-$pkgver"
	mkdir -p build
	cd build
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr
	cmake --build .
}

check()
{
	cd "$pkgname-$pkgver/build/tests"
	ctest
}

package()
{
	cd "$pkgname-$pkgver/build"
	DESTDIR=$pkgdir cmake --build . --target install
}