summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 789c069c4f1ca47eea6ece20059cce6a082d10d0 (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
# Maintainer: Felix Kauselmann <licorn at gmail dot com>
pkgname=libunarr-git
pkgver=1.0.0.r1.g62e744b
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/selmf/unarr"
license=("LGPL3")
pkgdesc="A lightweight decompression library with support for rar, tar and zip archives."
source=('git+https://github.com/selmf/unarr')
makedepends=('cmake' 'git')
depends=('zlib' 'bzip2' 'xz')
provides=('libunarr')

md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/unarr"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/unarr"
  cmake ./ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR:STRING=/usr/lib
  make
}

package() {
  cd "${srcdir}/unarr"
  make DESTDIR=$pkgdir install
}