blob: 55380f0f3638101a21e00fb12ca64b1f6ebacbeb (
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
38
39
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Zeph <zeph33@gmail.com>
pkgname=pamac-cli
pkgver=11.7.4
_commit=1ce8a93aeeae71244ecec6d257daae5eea3f3fc4
pkgrel=1
pkgdesc='Pamac cli frontend for libalpm'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/manjaro/$pkgname"
license=('GPL-3.0-or-later')
depends=('libpamac')
makedepends=('vala' 'meson' 'asciidoc' 'git')
optdepends=('plymouth: offline upgrades')
source=("git+${url}.git#commit=${_commit}")
sha256sums=('a347066c47a3e6ad8d32f6b947f4568592bd1bf038ea9b72a387b6f81a95c0ee')
_srcdir="$pkgname"
pkgver() {
cd "$_srcdir"
git describe --tags | sed 's/^v//;s/-/+/g'
}
prepare() {
cd "$_srcdir"
# adjust version string
sed -i -e "s|\"$pkgver\"|\"$pkgver-$pkgrel\"|g" 'src/version.vala'
}
build() {
arch-meson "$_srcdir" 'build'
meson compile -C 'build'
}
package() {
meson install -C 'build' --destdir "$pkgdir"
install -Dm644 "$_srcdir/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|