summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddd8fc6ae8edfa7ea11421a646ed8b1e41b82532 (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: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=zstr-git
pkgver=r39.af8c8d1
pkgrel=1
pkgdesc='A C++ header-only ZLib wrapper'
arch=('any')
url='https://github.com/sandsmark/zstr'
license=('MIT')
depends=('zlib')
makedepends=('git')
conflicts=(zstr)
provides=(zstr)
source=('git+https://github.com/sandsmark/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
}