updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / privoxy-blocklist / PKGBUILD
blob593b2a3ed6a880e388708f3436cef7d837270b64
1 # Contributor: Andrwe Lord Weber <andrwe at andrwe dot org>
3 pkgname=privoxy-blocklist
4 pkgver=0.2
5 pkgrel=2
6 pkgdesc="Script which converts Adblock Plus blocklist to privoxy format."
7 arch=('any')
8 url=http://andrwe.org/doku.php/scripting/bash/privoxy-blocklist
9 license=('CC')
10 depends=("sed" "wget" "privoxy" "bash")
11 source=("http://andrwe.org/doku.php/scripting/bash/${pkgname}?do=export_code&codeblock=0")
12 md5sums=('3869de93201a7302acea0860b01b6c2a')
14 build() {
15         cd ${srcdir}
16         install -d ${pkgdir}/usr/sbin/
17         install -d ${pkgdir}/etc/cron.weekly/
18         install -m 700 -o root -g root "${pkgname}?do=export_code&codeblock=0" ${pkgdir}/usr/sbin/${pkgname}
19         echo -e "#!/bin/bash\n/usr/sbin/${pkgname}" > "${pkgdir}/etc/cron.weekly/${pkgname}"
20         chmod 755 "${pkgdir}/etc/cron.weekly/${pkgname}"
21