summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10675103c9e04070ad0b98ae012f94af1d947a16 (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
35
36
37
38
# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>

pkgname=libfragmentzip-git
pkgver=r58.ffec726
pkgrel=1
pkgdesc="A library allowing to download single files from a remote zip archive"
arch=(i686 x86_64)
url="https://github.com/tihmstar/libfragmentzip"
license=('LGPL3')
groups=()
depends=('curl' 'libzip' 'zlib')
makedepends=('git' 'libgeneral')
provides=(libfragmentzip)
conflicts=(libfragmentzip)
source=("git+https://github.com/tihmstar/libfragmentzip")
md5sums=('SKIP')

function pkgver() {
  cd libfragmentzip

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

build() {
  cd libfragmentzip

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd libfragmentzip

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: