Package Details: update-hosts-git r399.da403b6-1

Git Clone URL: (read-only, click to copy)
Package Base: update-hosts-git
Description: Generate a hosts file based on multiple sources (git)
Upstream URL:
Keywords: adblock blocker hosts
Licenses: GPLv2
Conflicts: update-hosts
Provides: update-hosts
Submitter: pyamsoft
Maintainer: pyamsoft
Last Packager: pyamsoft
Votes: 1
Popularity: 0.000000
First Submitted: 2015-09-12 05:29 (UTC)
Last Updated: 2020-12-27 05:45 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

sekret commented on 2021-09-11 07:34 (UTC)

Hi there, please remove the line that creates the bash-completion folder, because it stays empty, so it's not required.

And please remove all this unnecessary stuff you put in there!!! All those commented spellcheck lines really make it a pain to watch and use.

Furthermore, those msg "Could not cd into $srcdir/$_gitname" lines are completely unnecessary!!! And it's a lot cleaner to just use the install command instead of first creating the required directory and then to copy the files there. With install you can create the directories and copy the files with the required rights in one single line.

tl;dr: Here's a cleaned PKGBUILD

# Maintainer: pyamsoft <developer(dot)pyamsoft(at)gmail(dot)com>

pkgdesc="Generate a hosts file based on multiple sources (git)"
  'curl: Default download client'
  'wget: Optional download client'
  'iprange: Helper to optimize ipset configuration'
  'ipset: Parse ip address sets as an extra blocklist'
  'dnsmasq: Parse hosts as an extra dnsmasq blocklist'

pkgver() {
  cd "$srcdir/$_gitname"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

package() {
  cd "$srcdir/$_gitname"

  install -Dm755 "${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
  install -Dm644 "" "${pkgdir}/usr/share/doc/${_gitname}/"

sekret commented on 2016-02-06 11:44 (UTC)

Please change the arch line to arch=('any') because there are no binaries in this package! Furthermore you need to add the license to the package. To do this, please add this line to the package() function: install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" One last thing: All the dependencies you list in the depends line are in the base group, therefore they don't have to be included as a dependency, because every Arch user is supposed to have this group installed! :)