summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 021a20cb8b62029c31c4e1f73568ea8ca66de66d (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
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=pacoloco-git
pkgver=r21
pkgrel=1
pkgdesc='Lightweight pacman proxy server'
arch=(i686 x86_64)
url='https://github.com/anatol/pacoloco'
backup=(etc/pacoloco.ini)
license=(GPL3)
depends=(glibc)
makedepends=(git ragel)
source=(git://github.com/anatol/pacoloco)
sha1sums=('SKIP')

pkgver() {
  cd pacoloco
  # repo does not have any git tags yet
  echo r$(git rev-list --count master)
}

build() {
  cd pacoloco
  make
}

package() {
  cd pacoloco
  install -D -m755 pacoloco "$pkgdir"/usr/bin/pacoloco
  install -D -m644 systemd/pacoloco.service "$pkgdir"/usr/lib/systemd/system/pacoloco.service
  install -D -m644 pacoloco.ini "$pkgdir"/etc/pacoloco.ini
}