summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11659877ccfd36f85764995be08935abf97045dd (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: Eike <e.g@wwu.de>
pkgname=tinytiff-git
_pkgname=tinytiff
pkgdesc="A lightweight C/C++ library for reading and writing TIFF files"
pkgver=r82.f13ce29
pkgrel=1
arch=('any')
license=(custom)
url="https://jkriege2.github.io/TinyTIFF"
depends=()
makedepends=('git')
source=("${_pkgname}::git+https://github.com/jkriege2/TinyTIFF")
sha256sums=('SKIP')

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

build() {
    cmake -B build -S "${_pkgname}" \
		-DTinyTIFF_BUILD_SHARED_LIBS=ON \
		-DTinyTIFF_BUILD_STATIC_LIBS=OFF \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    cmake --build build --config Release
}

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