pkgfile: Update to v19

This commit is contained in:
Alexey Pavlov 2018-11-26 10:20:49 +03:00
parent f43df29bbe
commit b5f1e6aedf
2 changed files with 26 additions and 22 deletions

View File

@ -0,0 +1,12 @@
--- pkgfile-19/src/pkgfile.c.orig 2018-11-26 10:15:54.557508000 +0300
+++ pkgfile-19/src/pkgfile.c 2018-11-26 10:16:07.630330900 +0300
@@ -8,6 +8,9 @@
#include <sys/mman.h>
#include <sys/time.h>
#include <unistd.h>
+#if defined(__CYGWIN__)
+#include <alloca.h>
+#endif
#include "macro.h"
#include "match.h"

View File

@ -1,44 +1,36 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com> # Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=pkgfile pkgname=pkgfile
pkgver=17 pkgver=19
pkgrel=1 pkgrel=1
pkgdesc="A pacman .files metadata explorer" pkgdesc="A pacman .files metadata explorer"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="https://github.com/falconindy/pkgfile" url="https://github.com/falconindy/pkgfile"
groups=('base' 'base-devel') groups=('base' 'base-devel')
license=('MIT') license=('MIT')
makedepends=('pcre-devel' 'libarchive-devel' 'libcurl-devel') makedepends=('pcre-devel' 'libarchive-devel' 'libcurl-devel' 'meson')
depends=('libarchive' 'curl' 'pcre' 'pacman') depends=('libarchive' 'curl' 'pcre' 'pacman')
options=('emptydirs') options=('emptydirs')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/falconindy/$pkgname/archive/v$pkgver.tar.gz") source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/falconindy/${pkgname}/archive/v${pkgver}.tar.gz"
001-cygwin-alloca.patch)
install=pkgfile.install install=pkgfile.install
sha256sums=('de406dae1535296d4e71554cdaae4e1d279ef2c645fcff4405ed1b3d9e8ed0cb') sha256sums=('a1d37f058751b144d78757bd03fd9e391eb49d4dcca6c55942ebc2293c1431e5'
'9281aa0964a912c3b698eea169ff698f7e24eff8e7ae5929c235b7fc58989de7')
prepare() { prepare() {
cd "$srcdir/$pkgname-$pkgver" cd "${srcdir}/${pkgname}-${pkgver}"
./autogen.sh patch -p1 -i ${srcdir}/001-cygwin-alloca.patch
} }
build() { build() {
[[ -d "$srcdir/build-${CHOST}" ]] && rm -rf "$srcdir/build-${CHOST}" cd "${srcdir}/${pkgname}-${pkgver}"
mkdir "$srcdir/build-${CHOST}" && cd "$srcdir/build-${CHOST}" meson build-${CARCH}
#cd "$pkgname-$pkgver" ninja -v -C build-${CARCH}
../$pkgname-$pkgver/configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
make
# generate a license file
sed '/\*\//q' $srcdir/$pkgname-$pkgver/src/pkgfile.c >LICENSE
} }
package() { package() {
cd "$srcdir/build-${CHOST}" cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" install DESTDIR="${pkgdir}" ninja -C build-${CARCH} install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
} }