summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c59e19a651f660fbedf44e807ad54523a63c033 (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
37
38
39
#!/usr/bin/env bash
# Maintainer: Rob Shinn <rob.shinn@gmail.com> 

pkgname=shipper-git
pkgver=1.19.r18.g96f3e42
pkgrel=1
pkgdesc='Automated shipping of open-source project releases'
provides=('shipper')
conflicts=('shipper')
arch=('any')
license=('BSD2')
url="http://www.catb.org/~esr/shipper"
makedepends=('gzip' 'xmlto' 'make')
depends=('python3' 'openssh')
optdepends=(
  'irker: post to IRC'
  'lftp: upload files via ftp or scp'
  'python-twython: post to Twitter'
)
source=("${pkgname}::git+https://gitlab.com/esr/shipper")
sha256sums=('SKIP')


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

build() { 
  cd "${srcdir}/${pkgname}"
  make all
}

package() {  
  cd "${srcdir}/${pkgname}"
  DESTDIR="$pkgdir" prefix=/usr make install
}