summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcb0b591eb233845a58e7ba0d3bebb88dcb27157 (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
# Maintainer: Kieran Colford <kieran@kcolford.com>
pkgname=pacman-cycles-git
pkgver=1.0.0.r0.g116d2cd
pkgrel=2
pkgdesc="A script to print out installed packages that are part of a dependency cycle."
arch=('any')
url="https://github.com/kcolford/pacman-cycles"
license=('GPL')
groups=()
depends=('bash' 'pacman' 'pacman-contrib')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("git+$url")
md5sums=('SKIP')
noextract=()

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long | sed 's/v//;s/-/.r/;s/-/./g;'
}

package() {
  cd "$srcdir/${pkgname%-git}"
  install -Dm755 pacman-cycles "$pkgdir/usr/bin/pacman-cycles"
}