summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2498c18b06983037f620852994a9a69f08afd4d (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
# Maintainer: Robert Tari <robert at tari dot in>

pkgname="cmake-extras"
pkgver="1.6"
pkgrel=1
pkgdesc="A collection of add-ons for the CMake build tool"
arch=("any")
url="https://gitlab.com/ubports/core/${pkgname}"
license=("LGPL3")
depends=("cmake" "python")
source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/ubports/core/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
md5sums=("3f4a4f785cf34e6d201422e00e9e3ffa")

build()
{
    cd ${srcdir}/${pkgname}-${pkgver}
    cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr
    cmake --build build
}

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