summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f205726d65c3a2f2d93e39392c284d5d615b1ad (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
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=zstr-git
pkgver=r127.755da78
pkgrel=1
pkgdesc='A C++ header-only ZLib wrapper'
arch=('any')
url='https://github.com/mateidavid/zstr'
license=('MIT')
depends=('zlib')
makedepends=('git')
conflicts=(zstr)
provides=(zstr)
source=('git+https://github.com/mateidavid/zstr.git')
md5sums=('SKIP')

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

package() {
  cd zstr
  install -dm755 "${pkgdir}/usr/include/"
  install -m644 src/zstr.hpp "${pkgdir}/usr/include/zstr.hpp"
  install -m644 src/strict_fstream.hpp "${pkgdir}/usr/include/strict_fstream.hpp"
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/zstr-git/LICENSE
}