summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79031ab3a0f6102e55ea9614dffe2eba983669d6 (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
# Maintainer: Pablo Hardouin <pablohardouin02 at gmail dot com>
_pkgname=libcini
pkgname="${_pkgname}-git"
pkgver=2.1.1
pkgrel=1
pkgdesc="A simple and easy-to-use C initiation library"
arch=("x86_64")
url="https://github.com/wegank/libcini"
license=('GPL')
groups=()
depends=('sdl2' 'sdl2_ttf')
makedepends=('git' 'cmake')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("${_pkgname}::git+https://github.com/wegank/libcini.git")
md5sums=('SKIP')

build() {
	cd "${srcdir}/${_pkgname}"
	mkdir build
	cd build
	cmake ..
	cpack ..
}

package() {
	cd "${srcdir}/${_pkgname}"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 -t "${pkgdir}/usr/include/" include/* 
	install -Dm755 build/src/libcini.so "${pkgdir}/usr/lib/libcini.so"
}