blob: 331688fac2c1cbd9b8775515746dd248da0cd438 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
pkgbase=gnome-manpages-git
pkgname=('man-pages-clutter-git' 'man-pages-gdk3-git' 'man-pages-gio2-git' 'man-pages-glib2-git' 'man-pages-gobject2-git' 'man-pages-gtk3-git')
pkgver=20130101.15.e660878
pkgrel=2
pkgdesc="Various man pages for GNOME related libraries"
url="https://github.com/chergert/gnome-manpages/"
arch=('any')
makedepends=('git')
depends=('man-db')
conflicts=('gnome-manpages')
license=('GPL2')
install="${pkgbase}.install"
source=("git+https://github.com/chergert/gnome-manpages.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgbase%-*}"
printf $(git log -1 --format="%cd" --date=short | sed 's|-||g').$(git rev-list --count HEAD).$(git describe --always)
}
_package() {
_ARCHIVE="$1-manpages.tar.gz"
cd "${pkgbase%-*}"
# Remove previous extracted manuals
[ -d "${_ARCHIVE%.tar.gz}" ] && rm -rf "${srcdir}/${pkgbase%-*}/${_ARCHIVE%.tar.gz}"
# Extract man pages
mkdir "${_ARCHIVE%.tar.gz}"
tar xzf "${_ARCHIVE}" -C ${_ARCHIVE%.tar.gz}
# Install man pages
if [ $(ls -1 "${_ARCHIVE%.tar.gz}"/*.1 2> /dev/null | wc -l) -gt 0 ]; then
install -m 755 -d "${pkgdir}/usr/share/man/man1"
install -m 644 -t "${pkgdir}/usr/share/man/man1" "${_ARCHIVE%.tar.gz}"/*.1
gzip -r "${pkgdir}/usr/share/man/man1/"
fi
install -m 755 -d "${pkgdir}/usr/share/man/man3"
install -m 644 -t "${pkgdir}/usr/share/man/man3" "${_ARCHIVE%.tar.gz}"/*.3
gzip -r "${pkgdir}/usr/share/man/man3/"
}
package_man-pages-clutter-git() {
pkgdesc="Man pages for the Clutter library"
_package "clutter"
}
package_man-pages-gdk3-git() {
pkgdesc="Man pages for the GIMP Drawing Kit (GDK) 3 library"
_package "gdk3"
}
package_man-pages-gio2-git() {
pkgdesc="Man pages for the GIO 2 library"
_package "gio2"
}
package_man-pages-glib2-git() {
pkgdesc="Man pages for the GLib 2 library"
_package "glib2"
}
package_man-pages-gobject2-git() {
pkgdesc="Man pages for the GObject 2 library"
_package "gobject2"
}
package_man-pages-gtk3-git() {
pkgdesc="Man pages for the GTK+ 3 library"
_package "gtk3"
}
|