summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b957b3f48d674435bd4d1c073d9a0183b43378aa (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: TingPing tingping@tingping.se

pkgname=pygobject-docs-git
pkgver=r1.gaded0d4
pkgrel=1
pkgdesc='Devhelp documentation for PyGObject libraries'
arch=('any')
url='https://github.com/lazka/pgi-docs-devhelp'
license=('LGPL2')
options=('!strip')
depends=('devhelp')
source=('git+https://github.com/lazka/pgi-docs-devhelp.git')
md5sums=('SKIP')
_gitname='pgi-docs-devhelp'

pkgver() {
  cd "$_gitname"

  _rev=`git rev-list --count HEAD`
  _hash=`git describe --always`
  echo "r$_rev.g$_hash"
}

package() {
  cd "$_gitname"

  _dest="$pkgdir/usr/share/devhelp/books"

  mkdir -p "$_dest"
  cp --no-preserve=all -r python-* "$_dest"
}