summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5cbc1e1caf4b32fb81c1503a63f032b6b92188a1 (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
# Maintainer: Felix Kauselmann <licorn at gmail dot com>
pkgname=libunarr
pkgver=1.1.1
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=("https://github.com/selmf/unarr/releases/download/v${pkgver}/unarr-${pkgver}.tar.xz")
makedepends=('cmake' 'git' 'ninja')
depends=('zlib' 'bzip2' 'xz')
conflicts=('libunarr-git')

md5sums=('e3848dba8c655230c105b574a533a825')

build() {
  cd "${srcdir}/unarr-${pkgver}"
  cmake ./ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -GNinja
  ninja
}

package() {
  cd "${srcdir}/unarr-${pkgver}"
  DESTDIR=$pkgdir ninja install
}