# Maintainer: naniwakun <radio.naniwa[atmark]gmail.com>
pkgname=jdim-git-dev
pkgver=r2637.f5e5b667
pkgrel=1
pkgdesc="A 2channel browser written in C++ using gtkmm3. This is extra test version."
arch=('i686' 'x86_64')
url="https://github.com/JDimproved/JDim/tree/test"
license=('GPL2')
makedepends=('git')
depends=('gnutls' 'libsm' 'gtkmm3' 'autoconf-archive')
conflicts=('jd' 'jd-svn' 'jd-gtk3' 'jd-git' )
source=('git://github.com/JDimproved/JDim.git#branch=test')
sha256sums=('SKIP')

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

build() {
  cd "${srcdir}/JDim"
  autoreconf -i
  ./configure --prefix=/usr --with-stdthread  --with-gtkmm3
  make
}

package() {
  cd "${srcdir}/JDim"
  make DESTDIR=${pkgdir} install
}