# Maintainer: Frede Hundewadt # Contributor: Philip Müller #_branch=v4.10.x-stable _branch=master _date=$(date +%Y%m%d) pkgname=pacman-mirrors pkgver=4.10.1 pkgrel=3 pkgdesc="Manjaro Linux mirror list for use by pacman" arch=('any') depends=('python' 'python-npyscreen') makedepends=('git' 'python-babel' 'python-setuptools') optdepends=('gtk3: for interactive mode (GUI)' 'python-gobject: for interactive mode (GUI)') url="https://github.com/manjaro/pacman-mirrors.git" #url="https://github.com/fhdk/pacman-mirrors.git" conflicts=('pacman-mirrorlist' 'pacman-mirrorlist') replaces=('pacman-mirrorlist' 'pacman-mirrorlist') provides=("pacman-mirrorlist=$_date") license=('GPL') backup=(etc/pacman-mirrors.conf) source=(git+$url#branch=$_branch 'pacman-mirrors-install.script' 'pacman-mirrors-upgrade.script' 'pacman-mirrors-install.hook' 'pacman-mirrors-upgrade.hook') sha256sums=('SKIP' '718a47605be1ca328255b19047dee6d331e0440f303b86d17485fe53937b7906' '3b1df8c662161903653b0ae41d910019f87a58f3ecd8e02ea9ac8859b9c43f17' '88befb1a9b167112e05544ec4a765705bf474209e7ef67c44ffc418e10e89bfa' '6b6869d9dd85cd3a3cba49013dd2fc1c5f7a0934ba1284e21d4bbd24fa2540c6') prepare() { cd "${srcdir}"/pacman-mirrors # do something here } package() { cd "${srcdir}"/pacman-mirrors make DESTDIR="${pkgdir}" install install -D ${srcdir}/pacman-mirrors-install.script ${pkgdir}/usr/share/libalpm/scripts/pacman-mirrors-install install -D ${srcdir}/pacman-mirrors-upgrade.script ${pkgdir}/usr/share/libalpm/scripts/pacman-mirrors-upgrade install -Dm644 ${srcdir}/pacman-mirrors-install.hook ${pkgdir}/usr/share/libalpm/hooks/pacman-mirrors-install.hook install -Dm644 ${srcdir}/pacman-mirrors-upgrade.hook ${pkgdir}/usr/share/libalpm/hooks/pacman-mirrors-upgrade.hook }