diff options
author | Franklyn Tackitt | 2015-09-15 12:40:57 -0700 |
---|---|---|
committer | Franklyn Tackitt | 2015-09-15 12:40:57 -0700 |
commit | d068896d4586b60bdf083ab83930f4894e76cdf1 (patch) | |
tree | b0d0c70a7904b6ae66ede257a56432435a957201 | |
download | aur-d068896d4586b60bdf083ab83930f4894e76cdf1.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | pacget.install | 14 |
4 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6c910957a588 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = pacget + pkgdesc = A script using the mirrors from /etc/pacman.d/mirrorlist for speeding up pacman + pkgver = 0.1.0 + pkgrel = 0 + url = https://wiki.archlinux.org/index.php/Improve_pacman_performance + install = pacget.install + arch = any + license = FREE + depends = aria2 + depends = pacman + options = !emptydirs + source = improve_pacman_performance.wiki::https://wiki.archlinux.org/index.php/Improve_pacman_performance?action=raw + source = pacget.install + md5sums = eff13d58f819ccc5ff1a428c6db7062a + md5sums = 3eafc809dc489595c5afa03a12d1ef09 + +pkgname = pacget + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..bcf26b344578 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.tar.gz +*.zip +*.tar.xz +*.wiki diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5215ca83ef7d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Artem Bezsmertnyi <artem.bezsmertny@gmail.com> +pkgname=pacget +pkgver=0.1.0 +pkgrel=0 +pkgdesc="A script using the mirrors from /etc/pacman.d/mirrorlist for speeding up pacman" +arch=(any) +url="https://wiki.archlinux.org/index.php/Improve_pacman_performance" +license=('FREE') +depends=('aria2' 'pacman') +options=(!emptydirs) +install="pacget.install" +source=("improve_pacman_performance.wiki::https://wiki.archlinux.org/index.php/Improve_pacman_performance?action=raw" + "pacget.install") +md5sums=('eff13d58f819ccc5ff1a428c6db7062a' + '3eafc809dc489595c5afa03a12d1ef09') + +build() { + cd "${srcdir}" + + # Get all lines between {{hc|/usr/bin/pacget|<nowiki> and the following </nowiki>}} + grep -ozP '(?s)\{\{hc\|\/usr\/bin\/pacget\|<nowiki>\n\K.*?(?=\n<\/nowiki>)' improve_pacman_performance.wiki > "${srcdir}/pacget" + # Get all lines between {{hc|/etc/pacget.conf|<nowiki> and the following </nowiki>}}A + grep -ozP '(?s)\{\{hc\|\/etc\/pacget.conf\|<nowiki>\n\K.*?(?=\n<\/nowiki>)' improve_pacman_performance.wiki > "${srcdir}/pacget.conf" +} + +package() { + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/etc" + + install -D -m 755 "${srcdir}/pacget" "${pkgdir}/usr/bin/pacget" + install -D -m 644 "${srcdir}/pacget.conf" "${pkgdir}/etc/pacget.conf" +} +# vim:set ts=2 sw=2 et: diff --git a/pacget.install b/pacget.install new file mode 100644 index 000000000000..15989c3757a0 --- /dev/null +++ b/pacget.install @@ -0,0 +1,14 @@ +xfercommand() { +cat <<EOM +--> To use pacget, modify your /etc/pacman.conf with +--> XferCommand = exec /usr/bin/pacget %u %o +EOM +} + +post_install() { + xfercommand +} + +post_upgrade() { + xfercommand +} |