blob: f3c96ddd6fb1749ba063cbfff9e1158f5f28e54a (
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
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Zeph <zeph33@gmail.com>
_pkgname=pamac
pkgname=${_pkgname}-cli
pkgver=11.6.0
pkgrel=2
pkgdesc='Pamac cli frontend for libalpm'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://gitlab.manjaro.org/applications/$pkgname"
license=('GPL3')
depends=('libpamac')
makedepends=('gettext' 'vala' 'meson' 'ninja' 'asciidoc' 'git')
optdepends=('plymouth: offline upgrades')
source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
#source=("git+$url.git#commit=a1cd2b9709a642b807f163fdbd6bd539b1881059")
sha256sums=('a885681b0c190bebf27554e33f4418dbce9e256af19108fb5e115521c65aca78')
_srcdir="$pkgname-$pkgver"
#_srcdir="$pkgname"
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"
}
|