# $Id: PKGBUILD 145130 2015-10-27 16:51:44Z bisson $
# Contributor: Francois Boulogne <fboulogne at april dot org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=subsurface-libdc
_pkgname=libdivecomputer-subsurface-branch
pkgver=4.5.1
pkgrel=1
pkgdesc='Library for communication with dive computers'
url='http://git.subsurface-divelog.org/'
license=('LGPL')
arch=('i686' 'x86_64')
source=("http://subsurface-divelog.org/downloads/${_pkgname}-${pkgver}.tgz")
sha1sums=('604fd43901a60fa05cee6a1bf57a4320c43608bf')

conflicts=('libdivecomputer')
provides=('libdivecomputer')
replaces=('libdivecomputer')

build() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	autoreconf --install
	./configure \
		--prefix=/usr \
		--program-prefix=libdc- \

	make
}

package() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
}
