summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a478c3f2ca37997ef70be3ae1134969638696a98 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Evert Vorster <superchief AT evertvorster DOT com>
pkgname=libgeotiff-git
_pkgname=libgeotiff
pkgver=1.7.1_44_g1f3e10b
pkgrel=1
epoch=
pkgdesc="Permits the extraction of keys from geotiff files, cmake version"
arch=(x86_64)
url="https://github.com/OSGeo/libgeotiff"
license=('MIT')
groups=()
depends=(libtiff proj)
makedepends=()
checkdepends=()
optdepends=()
provides=(libgeotiff)
conflicts=(libgeotiff)
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/OSGeo/libgeotiff")
noextract=()
sha256sums=('SKIP')
validpgpkeys=()

pkgver(){
    cd "$srcdir/$_pkgname/"
    git describe --tags | tr - _
}

prepare() {
echo "Prepare step"
}

build() {
echo "Build step"
cd ${srcdir}/${_pkgname}
mkdir -p build_cmake
cd build_cmake
cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS="-Wall -Wextra -Werror" ../libgeotiff
make -j3

}

check() {
echo "Check step"
#	cd "$pkgname-$pkgver"
#	make -k check
}

package() {
#	cd "$pkgname-$pkgver"
  cd ${srcdir}/${_pkgname}/build_cmake
  cp ../libgeotiff/LICENSE .
  make DESTDIR="${pkgdir}" install
  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
}