diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 27 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c4b2baa542e9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = hosts-add-github-git + pkgdesc = Adding GitHub IPs from GitHub520 to hosts + pkgver = r7.73a920d + pkgrel = 1 + url = https://github.com/chenyanzz/hosts_add_github + arch = any + license = unknown + makedepends = git + depends = python-requests + provides = hosts-add-github + source = git+https://github.com/chenyanzz/hosts_add_github.git + md5sums = SKIP + +pkgname = hosts-add-github-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8d560c41218c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.mp3 +test/ +hosts_add_github/ +src/ +pkg/ +*.tar*
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..91b01306dee2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Sam L. Yes <samlukeyes123 at gmail dot com> + +pkgname=hosts-add-github-git +_repo=hosts_add_github +pkgver=r7.73a920d +pkgrel=1 +pkgdesc="Adding GitHub IPs from GitHub520 to hosts" +arch=('any') +url="https://github.com/chenyanzz/hosts_add_github" +license=('unknown') +makedepends=('git') +depends=('python-requests') +optdepends=() +provides=('hosts-add-github') +source=("git+${url}.git") +md5sums=(SKIP) + +pkgver() { + cd ${srcdir}/$_repo + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd ${srcdir}/$_repo + install -d ${pkgdir}/usr/bin + install -m755 update_gh_hosts.py ${pkgdir}/usr/bin/update-gh-hosts +}
\ No newline at end of file |