blob: 3dd6d2908b735d13ff542938680a63a9fc55f0e3 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Yauheni Kirylau <actionless DOT loveless PLUS aur AT gmail MF com>
# shellcheck disable=SC2001,SC2016,SC2034,SC2154 shell=bash
_pkgname=pikaur-static
pkgname="${_pkgname}-git"
pkgver=1.30.2
pkgrel=1
pkgdesc='AUR helper without dependencies which asks all questions before installing/building. Static build for recovery situations, similar to `pacman-static`'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/actionless/pikaur"
license=('GPL-3.0-only')
source=(
"$pkgname::git+${url}.git#branch=master"
)
b2sums=(
"SKIP"
)
depends=(
'git'
)
makedepends=(
'nuitka'
'ccache'
'fish'
'python-markdown-it-py'
'python-pysocks'
'python-defusedxml'
)
optdepends=(
'devtools: for Arch Pkgs support in -G/--getpkgbuild operation'
'pacman-contrib: to use in pacman hook/systemd timer for cleaning up pikaur cache'
)
conflicts=("$_pkgname")
provides=("$_pkgname")
changelog="CHANGELOG"
options=('!buildflags' '!strip')
pkgver() {
cd "${srcdir}/${pkgname}" || exit 2
set -o pipefail
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || echo 0.0.1
}
build() {
cd "${srcdir}/${pkgname}" || exit 2
sed -i -e "s/^VERSION[: ].*=.*/VERSION = '${pkgver}'/g" pikaur/config.py
make standalone
}
package() {
cd "${srcdir}/${pkgname}" || exit 2
install -Dm644 "${srcdir}/${pkgname}/packaging/usr/lib/systemd/user/pikaur-cache.service" \
"${pkgdir}/usr/lib/systemd/user/${_pkgname}-cache.service"
install -Dm644 "${srcdir}/${pkgname}/packaging/usr/lib/systemd/user/pikaur-cache.timer" \
"${pkgdir}/usr/lib/systemd/user/${_pkgname}-cache.timer"
for langmo in $(cd ./locale && ls ./*.mo); do
lang=$(sed -e 's/.mo$//' <<< "${langmo}")
install -Dm644 "locale/${langmo}" "$pkgdir/usr/share/locale/${lang}/LC_MESSAGES/${_pkgname}.mo"
done
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 pikaur.1 "${pkgdir}/usr/share/man/man1/${_pkgname}.1"
install -Dm755 "${srcdir}/${pkgname}/pikaur_static/pikaur-standalone" "${pkgdir}/usr/bin/${_pkgname}"
}
|