summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91111ae5c9f9eb65e64a654a7c40712f292345bf (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
# Maintainer: Jelle van der Waa <jelle@archlinux.org>

pkgname=archlinux-repro-git
pkgver=r116.a1dc7bd
pkgrel=1
pkgdesc='Tools to reproduce arch linux packages'
arch=('any')
license=('MIT')
makedepends=('git' 'asciidoc')
depends=('diffoscope' 'curl' 'gnupg' 'git')
url="http://github.com/archlinux/archlinux-repro"
source=("git+https://github.com/archlinux/archlinux-repro.git")
sha256sums=('SKIP')

pkgver() {
  cd archlinux-repro
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build(){
  cd archlinux-repro
  make
}

package() {
  cd archlinux-repro
  make PREFIX=/usr DESTDIR="$pkgdir" PROGNM=$pkgname install
}