summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e220a257c64e84a2d78ed122afd113e96a379663 (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
# Maintainer: Andrew Scott <aur at andyscott dot me>
_pkgname=check-link-consistency
pkgname="${_pkgname}-git"
pkgver=r29.6a0e048
pkgrel=1
pkgdesc="Checks linked files like revdep-rebuild with additional features for Arch Linux"
arch=('x86_64')
url='https://github.com/dimgel/check-link-consistency'
license=('GPL3')
depends=('libarchive' 'libelf')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}"::git+https://github.com/dimgel/"${_pkgname}".git)
b2sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  ( set -o pipefail
    git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
  )
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  make DESTDIR="$pkgdir/" install
}