summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33daa938758b1da73ec2208e77c2900687225c01 (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
35
36
37
38
39
40
41
42
# Maintainer: Otreblan <otreblain@gmail.com>

pkgname=refl-cpp
pkgver=0.12.4
pkgrel=1
epoch=
pkgdesc="A modern compile-time reflection library for C++ with support for overloads, templates, attributes and proxies"
arch=('any')
url="https://github.com/veselink1/refl-cpp"
license=('MIT')
groups=()
depends=()
makedepends=("dos2unix" "cmake")
checkdepends=()
optdepends=()
provides=()
conflicts=()
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('8f6e02535ac3d1e51c1d8288d755378b914bb72f817020d2dec261de33f78b5c')

prepare() {
	cd "$pkgname-$pkgver"

	mkdir -p build
	dos2unix include/*.hpp
}

build() {
	cd "$pkgname-$pkgver/build"

	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		..
	make
}

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

	install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}