summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b30af6d28577c1b46bcc9fef56c1b7e39ea638c1 (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: Leo Puvilland <lpuvilla0001@mymail.lausd.net>

pkgname=libfragmentzip-git
pkgver=1.64.aaf6fae
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-dev' 'zlib1g' 'zlib1g-dev' 'libcurl4-openssl-dev')
focal_depends=("{depends[@]}" 'libzip5')
hirsute_depends=("{depends[@]}" 'libzip4')
makedepends=('git' 'libgeneral')
provides=(libfragmentzip)
conflicts=(libfragmentzip)
source=("git://github.com/tihmstar/libfragmentzip")
md5sums=('SKIP')

function pkgver() {
  cd libfragmentzip

  printf "1.%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
}