summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 299a310ea939d47c33055e3a09c70a5d3e9503c6 (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: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
# Contributor: Frank Seifferth <frankseifferth@posteo.net>

pkgname=libxlsxwriter
pkgver=1.1.8
pkgrel=1
pkgdesc='A C library for creating Excel XLSX files.'
arch=('i686' 'x86_64')
url='http://libxlsxwriter.github.io'
license=('LicenseRef-Multiple')
depends=(zlib)
makedepends=(python-pytest cmake)
source=("https://github.com/jmcnamara/libxlsxwriter/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('4d1df3b66e694629025ba4154a746d896f9fa32c727267cfbeacf72a3fc70d1b34c7bc767a03bca81395bbe2ff366fc4f4184c2c40126bc6b2d58b33a758cc8f')

build() {
  cd "$srcdir/$pkgname-$pkgver/"
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver/"
  make test_cmake
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make install PREFIX=/usr DESTDIR="$pkgdir"
  install -D -m644 License.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}