summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef5f29e506044d0c1c0fac8f71a1bcc35c1dc42e (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
# Maintainer: Tim Lewis <tyls at zeoliq dot com>
pkgname=ziplib-git
_pkgname=ziplib
pkgver=0.1
pkgrel=1
pkgdesc="Petr Beneš C++11 library for working with Zip archives with ease."
license=('custom')
arch=('x86_64')
url='https://bitbucket.org/wbenny/ziplib/wiki/Home'
options=(!libtool)
makedepends=(make clang git rsync)
source=("git+https://bitbucket.org/wbenny/ziplib.git")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/ziplib"

  libdir="$pkgdir/usr/lib/"
  includedir="$pkgdir/usr/include/$_pkgname"

  mkdir -p $libdir
  mkdir -p $includedir

  cp Bin/libzip.so $libdir/lib$_pkgname.so
  install -D -m644 Licence.txt "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"

  cd Source/ZipLib
  find . -name '*.h' -exec rsync -rR {} $includedir \;
}