summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b76999d9761fb3e3dac1734fc62d3df744b2a90 (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
# Maintainer: Federico Di Pierro <nierro92@gmail.com>

pkgname=libmodule
pkgver=3.2.0
pkgrel=2
pkgdesc="C linux library to build simple and modular projects"
arch=('i686' 'x86_64')
url="https://github.com/FedeDP/${pkgname}"
license=(GPL)
depends=()
makedepends=(git cmake)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=("5dbb947399ae1b9ec04c7fae02a9b26ad309e72a75d24787d427776af38d964e")

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    mkdir -p build
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"/build
    cmake \
        -G "Unix Makefiles" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_BUILD_TYPE="Release" \
        ../
    make
}

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