# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python2_7 python3_{5,6} ) #inherit autotools DESCRIPTION="Contributed scripts to pacman" HOMEPAGE="https://git.archlinux.org/pacman-contrib.git/about" if [[ ${PV} == *9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://git.archlinux.org/pacman-contrib.git" else SRC_URI="https://sources.archlinux.org/other/community/${PN}/${P}.tar.gz" # Do *not* re-add ~x86! # https://www.archlinux.org/news/phasing-out-i686-support/ KEYWORDS="~amd64" fi LICENSE="GPL-2" SLOT="0" IUSE="" RDEPEND="sys-apps/pacman" src_prepare() { # Remove a line that adds "-Werror" in ./configure when # "--enable-debug" is passed: sed -i -e '/-Werror/d' configure.ac || die default eautoreconf } #src_install() { # dodir /etc/pacman.d/ # # contributed parts, i.e. not pacman itself, but useful helpers and some templates and basic docs # dobin "${S}"/contrib/{bacman,checkupdates,pac{cache,diff,list,log-pkglist,scripts,search},rankmirrors,updpkgsums} # newdoc "${S}"/contrib/README contrib-README # dodoc "${S}"/contrib/PKGBUILD.vim # # create /var/chroot/archlinux # # see bug #631754 # dodir /var/chroot/archlinux # # default # # avoid creating stuff inside /var/cache/ # # see bug #633742 for more information # rm -r "${D}"/var/cache/pacman #} # #pkg_postinst() { # einfo "" # einfo "The default root dir was set to ${EPREFIX}/var/chroot/archlinux" # einfo "to avoid breaking Gentoo systems due to oscitancy." # einfo "If you prefer another directory, take a look at" # einfo "pacman’s parameter -r|--root)." # einfo "" # einfo "You will need to setup at least one mirror in /etc/pacman.d/mirrorlist." # einfo "Please generate it manually according to the Archlinux documentation:" # einfo "https://wiki.archlinux.org/index.php/Mirror" # einfo "" # ewarn "Archlinux as the main pacman using party and main developer group" # ewarn "dropped support for x86 (i686 called there) entirely in Nov 2017." # ewarn "Please keep this in mind when setting up new systems." # ewarn "For more details see" # ewarn "https://www.archlinux.org/news/phasing-out-i686-support" # einfo "" # ewarn "Note that the helper scripts were moved to the pacman-contrib project." # ewarn "You need to install manually for now." #}