summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae76e55d748f02a559de2cdd198378c736a8ab52 (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
35
36
# Maintainer: Luigi311 <aur@luigi311.com>
pkgname=libmegapixels-git
pkgver=r65.3669b8a
pkgrel=1
pkgdesc='Interface library between libtiff and the world to make sure the output is valid DNG'
arch=('x86_64' 'aarch64')
url="https://gitlab.com/megapixels-org/libmegapixels"
branch="master"
license=('GPL3')
depends=('libdng')
makedepends=('meson' 'libconfig')
checkdepends=()
optdepends=()
provides=('libmegapixels')
conflicts=('libmegapixels')
replaces=('libmegapixels')
source=("${pkgname}::git+${url}.git#branch=${branch}")
md5sums=('SKIP')

pkgver() {
        cd "$srcdir/${pkgname}"
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
        arch-meson ${pkgname} build
        meson compile -C build
}

check() {
        meson test -C build --print-errorlogs
}

package() {
        DESTDIR="${pkgdir}" meson install -C build
}