blob: ff7a51a070d30cc714f6f3650a6462ff2aed7360 (
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
64
65
66
67
68
69
70
71
72
73
74
75
|
#!/bin/bash
# Maintainer: Matheus Gabriel Werny de Lima <matheusgwdl@protonmail.com>
pkgname=keysmith
pkgver=21.06
# shellcheck disable=SC2034
pkgrel=1
# shellcheck disable=SC2034
epoch=
# shellcheck disable=SC2034
pkgdesc="OTP client for Plasma Mobile and Desktop."
# shellcheck disable=SC2034
arch=("any")
url="https://invent.kde.org/utilities/${pkgname}"
# shellcheck disable=SC2034
license=("GPL3")
# shellcheck disable=SC2034
groups=()
# shellcheck disable=SC2034
depends=()
# shellcheck disable=SC2034
makedepends=("cmake" "extra-cmake-modules" "frameworkintegration" "gcc" "kirigami2" "libsodium" "qt5-base" "qt5-quickcontrols2")
# shellcheck disable=SC2034
checkdepends=()
# shellcheck disable=SC2034
optdepends=()
# shellcheck disable=SC2034
provides=()
# shellcheck disable=SC2034
conflicts=("keysmith-git")
# shellcheck disable=SC2034
replaces=()
# shellcheck disable=SC2034
backup=()
# shellcheck disable=SC2034
options=()
# shellcheck disable=SC2034
install=
# shellcheck disable=SC2034
changelog=
# shellcheck disable=SC2034
source=("${pkgname}-v${pkgver}.tar.gz::${url}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
# shellcheck disable=SC2034
noextract=()
# shellcheck disable=SC2034
md5sums=("bd2ebc5296b39c621474d26bc1182d2e")
# shellcheck disable=SC2034
validpgpkeys=()
build()
{
# shellcheck disable=SC2154
mkdir -p "${srcdir}"/"${pkgname}"-v"${pkgver}"/build/
cd "${srcdir}"/"${pkgname}"-v"${pkgver}"/build/ || exit
cmake ..
make
}
package()
{
# Assure that the directories exist.
# shellcheck disable=SC2154
mkdir -p "${pkgdir}"/usr/share/doc/"${pkgname}"/
mkdir -p "${pkgdir}"/usr/share/licenses/"${pkgname}"/
# Install the software.
cd "${srcdir}"/"${pkgname}"-v"${pkgver}"/build/ || exit
make DESTDIR="${pkgdir}" install
# Install the documentation.
install -Dm644 "${srcdir}"/"${pkgname}"-v"${pkgver}"/README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/
# Install the license.
install -Dm644 "${srcdir}"/"${pkgname}"-v"${pkgver}"/LICENSES/GPL-3.0-or-later.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/
}
|