updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / selfhtml-de / PKGBUILD
blobb081e0f3e949f1da2791aaded64df4f46f1edb04
1 # Contributor: Tilman Blumenbach <tilman (at) ax86 (dot) net>
3 pkgname='selfhtml-de'
4 pkgver='8.1.2'
5 pkgrel=1
6 pkgdesc='An excellent HTML reference which also covers other web topics (German version)'
7 arch=('i686' 'x86_64')
8 url='http://de.selfhtml.org'
9 license=('custom')
10 source=('http://ftp.uni-ulm.de/mirrors/selfhtml/selfhtml812.zip')
11 noextract=('selfhtml812.zip')
12 md5sums=('81806920c148ace4f24e8a8239f075ac')
13 _selfhtml_lang='de'
15 build()
17         _selfhtml_rootpath="/usr/share/doc/selfhtml/${_selfhtml_lang}"
18         _selfhtml_path="${pkgdir}${_selfhtml_rootpath}"
19         _selfhtml_licensepath="${pkgdir}/usr/share/licenses/selfhtml/${_selfhtml_lang}"
20         
21         mkdir -p "$_selfhtml_path"
22         mkdir -p "$_selfhtml_licensepath"
23         
24         cd "$srcdir"
25         unzip "${noextract[0]}" -d "$_selfhtml_path"
27         # Set permissions
28         find "$_selfhtml_path" -type f '!' -perm 0644 -execdir chmod 0644 {} ';'
29         find "$_selfhtml_path" -type d '!' -perm 0755 -execdir chmod 0755 {} ';'
31         # Create symlink to copyright file:
32         ln -s "${_selfhtml_rootpath}/editorial/copyright.htm" "$_selfhtml_licensepath"
34         return 0