summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13b889f2b76b76dc74d9146e0afe28e031b4ada1 (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
# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>

pkgname=plibsys
pkgver=0.0.4
pkgrel=1
pkgdesc="Cross-platform system C library with some helpful routines"
arch=('x86_64')
url="https://github.com/saprykin/plibsys"
license=('LGPL2.1')
depends=('glibc')
makedepends=('cmake')
source=("https://github.com/saprykin/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('61957666fb454469e1ff68435463eaf426e960caed33540dbb495e1aa7c446c9803d100f33f1a6ea70d5f2ee2d0d19ec315f3a8c651747f65a186ad061c05e51')

prepare() {
  rm -rf "build"
  mkdir "build"
}

build() {
  cd "build"
  cmake "../${pkgname}-${pkgver}" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DPLIBSYS_BUILD_STATIC=OFF \
    -DPLIBSYS_TESTS=OFF
  make
}

package() {
  cd "build"
  make DESTDIR="${pkgdir}" install
}