File tree 2 files changed +28
-12
lines changed
archlinuxcn/arch-wiki-docs-zh
2 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 2
2
# Maintainer: George Rawlinson <[email protected] >
3
3
# Maintainer: Sergej Pupykin <[email protected] >
4
4
5
- pkgname=arch-wiki-docs-zh
6
- pkgver=20221208
5
+ pkgbase=arch-wiki-docs-zh
6
+ pkgname=(arch-wiki-docs-zh-cn arch-wiki-docs-zh-tw)
7
+ pkgver=20221209
7
8
pkgrel=1
8
9
pkgdesc=' Pages from www.archlinuxcn.org optimized for offline browsing'
9
10
arch=(' any' )
10
- url=' https://github.com/lahwaacz /arch-wiki-docs'
11
+ url=' https://github.com/archlinuxcn /arch-wiki-docs-zh '
11
12
license=(' FDL' )
12
13
makedepends=(
13
14
' git' ' python' ' python-simplemediawiki' ' python-lxml' ' python-cssselect' ' python-requests'
14
15
)
15
16
options=(' !strip' )
16
- _commit=' 8082524dda618479fca65ab6cb13d69822d444bd'
17
- source=(" $pkgname ::git+https://github.com/lahwaacz/arch-wiki-docs#commit=$_commit " )
17
+ source=(" $pkgbase ::git+https://github.com/archlinuxcn/arch-wiki-docs-zh.git" )
18
18
b2sums=(' SKIP' )
19
19
20
20
pkgver () {
21
21
date " +%Y%m%d"
22
22
}
23
23
24
- prepare () {
25
- cd " $pkgname "
24
+ build () {
25
+ cd " $pkgbase "
26
26
27
- sed -i ' s|^url = .*|url = "https://wiki.archlinuxcn.org/wzh/api.php"|' ArchWiki/ArchWiki.py
28
27
LANG=en_US.UTF-8 python \
29
28
arch-wiki-docs.py \
30
- --output-directory " $srcdir /build_wiki" \
29
+ --output-directory " $srcdir /build_wiki_zh-cn" \
30
+ --variant " zh-cn" \
31
31
--clean
32
+
33
+ LANG=en_US.UTF-8 python \
34
+ arch-wiki-docs.py \
35
+ --output-directory " $srcdir /build_wiki_zh-tw" \
36
+ --variant " zh-tw" \
37
+ --clean
38
+ }
39
+
40
+ package_arch-wiki-docs-zh-cn () {
41
+ _package zh-cn
42
+ }
43
+
44
+ package_arch-wiki-docs-zh-tw () {
45
+ _package zh-tw
32
46
}
33
47
34
- package () {
35
- install -vdm755 " $pkgdir /usr/share/doc/arch-wiki-zh /html"
36
- cp -r build_wiki /* " $pkgdir /usr/share/doc/arch-wiki-zh /html"
48
+ _package () {
49
+ install -vdm755 " $pkgdir /usr/share/doc/arch-wiki-$1 /html"
50
+ cp -r build_wiki_ $1 /* " $pkgdir /usr/share/doc/arch-wiki-$1 /html"
37
51
}
Original file line number Diff line number Diff line change
1
+ arch-wiki-docs-zh-cn
2
+ arch-wiki-docs-zh-tw
You can’t perform that action at this time.
0 commit comments