summaryrefslogtreecommitdiff
path: root/pcr/pacman-color/PKGBUILD
blob: 04e4efa6830ed7d81579f25ea81b449c3ace0652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor (Arch): JokerBoy <jokerboy at punctweb dot ro>
# Contributor (Arch): vogo <vogo(at)seznam(dot)cz>
# Maintainer : Parabola GNU / Linux-libre <aurelien@cwb.io>

pkgname=pacman-color
pkgver=4.0.3
pkgrel=3
pkgdesc="A color patched command-line frontend for libalpm (Pacman)"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.archlinux.org/pacman/"
license=('GPL')
depends=('pacman>=4.0' 'pacman<4.1')
backup=('etc/pacman.d/color.conf')
source=("http://mirrors.kernel.org/archlinux/other/pacman/pacman-${pkgver}.tar.gz"
        '0001-Add-conflict-for-replacing-owned-empty-directory.patch'
        '0002-Check-empty-subdirectory-ownership.patch'
        "${pkgname}-${pkgver}.patch"
        'color.conf')
md5sums=('387965c7125e60e5f0b9ff3b427fe0f9'
         '1a9b79788640907a2b34e8671cacc94a'
         'a9ddd43891bed364e1e97d27b2887bf1'
         '185e6a488b1aa14db4a54b71eb5e5e29'
         '47665f5054196c20ba0dd280a8d4c5e1')

build() {
  cd "pacman-${pkgver}"
  patch -p1 -i "${srcdir}/0001-Add-conflict-for-replacing-owned-empty-directory.patch"
  patch -p1 -i "${srcdir}/0002-Check-empty-subdirectory-ownership.patch"
  patch -p1 -i "${srcdir}/${pkgname}-${pkgver}.patch"
  ./configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --localstatedir=/var \
      --disable-doc
  make
}

package() {
  # install pacman-color && color.conf
  install -Dm755 "pacman-${pkgver}/src/pacman/.libs/pacman" "${pkgdir}/usr/bin/pacman-color"
  install -Dm644 'color.conf' "${pkgdir}/etc/pacman.d/color.conf"
}