summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ac20a9f782c5fe01df07d3bbdf0fb7fb8943c05 (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
# Maintainer: Steve Holvoet <linux@steho.be>
pkgname=mtftar-git
_pkgname=mtftar
pkgver=14.6b0a4e1
pkgrel=1
pkgdesc='A tool for translating a MTF stream to a TAR stream.'
arch=('x86_64')
url='https://github.com/sjmurdoch/mtftar'
license=('GPL2')
depends=('glibc')
makedepends=('git' 'make' 'gcc')
provides=('mtftar')
conflicts=('mtftar')
source=("git+https://github.com/sjmurdoch/mtftar.git")
md5sums=('SKIP')
        
pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"
  make
}

package() {
    mkdir -p "${pkgdir}/usr/bin"
    cp "${srcdir}/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/"
}