summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d5d1c3da79611db516d92c81aef572a2304a8c9 (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
# Maintainer: Ian Denhardt <ian@zenhack.net>
pkgname=pacsync-git
pkgver=9
pkgrel=1
pkgdesc="A pacman frontend which manages packages based on a holistic view of the system"
arch=('any')
url="https://gitlab.com/isd/pacsync"
license=('custom')
source=('git+https://gitlab.com/isd/pacsync')
replaces=('pacsync-hg')
makedepends=('git')

pkgver() {
  # We omit the leading r recommended in the VCS package guidelines, because:
  #
  # - Earlier versions of this package already used bare numbers, so adding
  #   an r would cause the version number to run backwards
  # - We can guarantee upstream will never tag a release (since the author
  #   of this PKGBUILD is also the upstream author), so there is no need to
  #   worry about a release appearing and messing up the versioning
  cd "$srcdir"/pacsync
  git rev-list --count HEAD
}

package() {
  cd "$srcdir"/pacsync

  install -Dm755 pacsync $pkgdir/usr/bin/pacsync
  install -Dm644 pacsync.8 $pkgdir/usr/share/man/man8/pacsync.8
  install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
  install -dm755 $pkgdir/etc/pacsync
}

# vim:set ts=2 sw=2 et:
sha256sums=('SKIP')