PKGBUILD 1.83 KB
Newer Older
Philip Müller's avatar
Philip Müller committed
1 2 3
# Maintainer: Frede Hundewadt <fh@manjaro.org>
# Contributor: Philip Müller <philm@manjaro.org>

Frede Hundewadt's avatar
Frede Hundewadt committed
4
_branch=master
Philip Müller's avatar
Philip Müller committed
5
_date=$(date +%Y%m%d)
Frede Hundewadt's avatar
Frede Hundewadt committed
6 7
pkgname=pacman-mirrors-dev
_pkgname=pacman-mirrors
Frede Hundewadt's avatar
Frede Hundewadt committed
8
pkgver=4.15.0.dev5
Frede Hundewadt's avatar
Frede Hundewadt committed
9
pkgrel=1
Philip Müller's avatar
Philip Müller committed
10 11 12 13 14 15
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)')
Frede Hundewadt's avatar
Frede Hundewadt committed
16
url="https://gitlab.manjaro.org/fhdk/pacman-mirrors.git"
17
conflicts=('pacman-mirrorlist' 'pacman-mirrors-dev' 'maint' 'reflector')
Frede Hundewadt's avatar
Frede Hundewadt committed
18
replaces=('pacman-mirrorlist')
19
provides=("pacman-mirrorlist=$_date" "pacman-mirrors=$pkgver")
Philip Müller's avatar
Philip Müller committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33
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() {
Frede Hundewadt's avatar
Frede Hundewadt committed
34
  cd "${srcdir}"/$_pkgname
Philip Müller's avatar
Philip Müller committed
35 36 37 38
  # do something here
}

package() {
Frede Hundewadt's avatar
Frede Hundewadt committed
39
  cd "${srcdir}"/$_pkgname
Philip Müller's avatar
Philip Müller committed
40 41 42 43 44 45 46
  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
}