summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ebe3e3d784052440690832d787ef64a09764f481 (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: Maarten de Vries <maarten@de-vri.es>

pkgname=mstd
pkgver=1.1.v2
pkgrel=2
pkgdesc="Stuff that could be in std::, but is not"
arch=('any')
url='https://github.com/m-ou-se/mstd'
license=('BSD')

source=("$pkgname-$pkgver.tar.gz::https://github.com/de-vri-es/mstd/archive/$pkgver.tar.gz")
sha512sums=('ea152f653e2a29e158efe574cfbe07487b614aadb1cdac38fd3edef58ca6a5a0fd589efbd29baa94fa63affae4cfb07faeecb8134699650f2679748d309aa093')

prepare() {
	rm -rf "$srcdir/build"
	mkdir "$srcdir/build"
	cd "$srcdir/build"
	cmake "$srcdir/$pkgname-$pkgver" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
}

build() {
	cd "$srcdir/build"
	make
}

package() {
	cd "$srcdir/build"
	make install DESTDIR="$pkgdir"
	install -m 644 -Dt "$pkgdir/usr/share/licenses/$pkgname" "$srcdir/$pkgname-$pkgver/COPYING"
}