blob: 028d5df8a207e235b388365ea3cee8fa3bc56e1b (
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
|
# Maintainer: Amir Mohammadi <183.amir@gmail.com>
pkgname=pgi-docs-devhelp-git
pkgver=r10.7f7e10d28
pkgrel=0
pkgdesc="Devhelp packages generated by pgi-docgen "
arch=('any')
url="https://github.com/lazka/pgi-docs-devhelp"
license=('unknown')
depends=('devhelp')
makedepends=('git')
provides=('pgi-docs-devhelp')
conflicts=('pgi-docs-devhelp')
source=(git+https://github.com/pygobject/pgi-docs-devhelp.git)
md5sums=('SKIP')
_gitname=pgi-docs-devhelp
pkgver() {
cd "$_gitname"
( set -o pipefail
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/$_gitname"
# removing the github readme file
rm README.rst
}
package() {
install -d "$pkgdir/usr/share/devhelp/books/"
cd "$srcdir/$_gitname"
cp -R * "$pkgdir/usr/share/devhelp/books/"
}
# vim:set ts=2 sw=2 et:
|