summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72eae9a474ecd025fcd88fb3364b743aeea4a540 (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
# Maintainer: Baudouin Feildel <baudouin_aur@feildel.fr>
pkgname=pgpointcloud
pkgver=1.2.5
pkgrel=1
pkgdesc="A PostgreSQL extension for storing point cloud (LIDAR) data"
arch=('i686' 'x86_64')
url="https://github.com/pgpointcloud/pointcloud"
license=('custom: pgpointcloud')
depends=('libxml2')
optdepends=()
makedepends=('cunit' 'clang15' 'llvm15')
provides=("pgpointcloud=$pkgver")
conflicts=('pgpointcloud-git')
changelog="$pkgname.changelog"
source=(
	"https://github.com/pgpointcloud/pointcloud/archive/v$pkgver.tar.gz"
)
sha256sums=(
	'f3924f283345f2da46a971e65f0c6ce602640ecf88a2057293443ec2a7a56774'
)

prepare() {
	cd "${pkgname#pg}-$pkgver"
}

build() {
	cd "${pkgname#pg}-$pkgver"

	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	cd "${pkgname#pg}-$pkgver"

	make check
}

package() {
	cd "${pkgname#pg}-$pkgver"

	install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
	make DESTDIR="$pkgdir/" install
}