summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36d393c5c2de22ad43899b20a6516ac71f523489 (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
# Maintainer: Marc Mettke <marc@itmettke.de>
_pkgname=aurebuildcheck-rs
pkgname=$_pkgname-git
pkgver=0.2.5.r0.gdb03565
pkgrel=1
pkgdesc="Archlinux package checker to identify packages which may need a rebuild"
arch=('x86_64')
url="https://github.com/mettke/aurebuildcheck-rs"
license=('MIT')
depends=('gcc-libs' 'pacman' 'which' 'file')
makedepends=('git' 'rust')
optdepends=(
	'glibc: perform checks via ldd'
	'binutils: perform checks via readelf'
	'pkgfile: find packages containing missing libraries'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"
  ./build_release.sh
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 LICENSE "$pkgdir/usr/share/licenses/aurebuildcheck-rs-git/LICENSE"
  install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
}