blob: 3009ad647f553d077802fecae17f05f468076521 (
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
31
32
33
34
35
36
37
|
# Maintainer: a821 at mail de
# Contributor: Dave Reisner <d@falconindy.com>
pkgname=expac-git
pkgver=10.r1.gab14fef
pkgrel=1
pkgdesc="pacman database extraction utility"
arch=('x86_64')
url="https://github.com/falconindy/expac"
license=('MIT')
depends=('pacman')
makedepends=('git' 'meson' 'perl')
conflicts=('expac')
provides=('expac')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd expac
git describe | sed 's/-/.r/;s/-/./g'
}
prepare() {
sed 's/^.\*.\?//;/DEALINGS/q' expac/src/expac.c > LICENSE
}
build() {
arch-meson expac build
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim: ft=sh syn=sh et
|