summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04cec2a75fb024f6b3f2d1cf3dce3e741bf95080 (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 <contact at pablo dot town>
_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-compat' '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"
}