summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43505ca7db40f90775e7e8aa52ea7a1b6112df37 (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
# Contributor: K. Piche <kpiche <at> rogers <dot> com>
# Maintainer: Jenya Sovetkin <e.sovetkin <at> gmail <dot> com>
pkgname=ripmime
pkgver=r13.a556ffe
pkgrel=1
arch=(any)
license=('BSD')
pkgdesc="Tool to extract the attached files out of a MIME package"
url="https://github.com/inflex/ripMIME"
source=('git+git://github.com/inflex/ripMIME')
md5sums=('SKIP')

_gitname=ripMIME

pkgver() {
  cd "${srcdir}/${_gitname}"

  # Get the version number.
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${srcdir}/${_gitname}"
  make || return 1
  mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/man/man1"
  make LOCATION="${pkgdir}/usr" install
}