[arch-commits] Commit in pkgfile/trunk (PKGBUILD)
Dave Reisner
dreisner at archlinux.org
Sun Aug 5 17:17:26 UTC 2018
Date: Sunday, August 5, 2018 @ 17:17:25
Author: dreisner
Revision: 330614
upgpkg: pkgfile 18-1
Modified:
pkgfile/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-05 16:53:09 UTC (rev 330613)
+++ PKGBUILD 2018-08-05 17:17:25 UTC (rev 330614)
@@ -2,7 +2,7 @@
# Maintainer: Dave Reisner <dreisner at archlinux.org>
pkgname=pkgfile
-pkgver=17
+pkgver=18
pkgrel=1
pkgdesc="a pacman .files metadata explorer"
arch=('x86_64')
@@ -9,28 +9,27 @@
url="http://github.com/falconindy/pkgfile"
license=('MIT')
depends=('libarchive' 'curl' 'pcre' 'pacman')
-source=("https://pkgbuild.com/~dreisner/sources/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
+makedepends=('git' 'meson')
+source=("git+https://github.com/falconindy/pkgfile#tag=v$pkgver")
install=pkgfile.install
-validpgpkeys=('487EACC08557AD082088DABA1EB2638FF56C0C53') # Dave Reisner
-md5sums=('c0ced1f0972891b41c9d84abcbf6bc1f'
- 'SKIP')
+md5sums=('SKIP')
+prepare() {
+ cd "$pkgname"
+
+ meson build -D buildtype=release
+}
+
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
- ./configure \
- --with-systemdsystemunitdir=/usr/lib/systemd/system
- make
-
- # generate a license file
- sed '/\*\//q' src/pkgfile.c >LICENSE
+ ninja -C build
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$pkgname"
- make DESTDIR="$pkgdir" install
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ DESTDIR=$pkgdir ninja -C build install
}
# vim: ft=sh syn=sh
More information about the arch-commits
mailing list