blob: 50ae79b978ac3ac25682e1c4faed69a19868e9b0 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
_projectname="virtualearth"
_pkgname="marble-maps-${_projectname}"
pkgname="${_pkgname}-git"
pkgver=r2.20230717.b1c89a9
pkgrel=1
pkgdesc='Microsoft satellite map for the Marble desktop globe.'
arch=(
'any'
)
_gitprotocol='git+https'
_githost="gitlab.com"
_gituser="marble-restricted-maps"
_giturl="${_githost}/${_gituser}/${_projectname}.git"
url="http://${_githost}/${_gituser}/${_projectname}"
license=("custom: unknown.")
depends=(
)
makedepends=(
'git'
)
checkdepends=()
provides=(
"${_pkgname}"
"marble-maps-bingsatellite"
)
conflicts=(
"${_pkgname}"
"marble-restricted-maps-git<=latest"
)
replaces=()
source=(
"${_projectname}::${_gitprotocol}://${_giturl}"
"license-info.txt"
)
sha256sums=(
'SKIP'
'956222372d7993efa4584827bb57e72fc693a5df4eadcb22ed88f96c79bf0a50'
)
prepare() {
cd "${srcdir}/${_projectname}"
git log > "${srcdir}/git.log"
}
pkgver() {
cd "${srcdir}/${_projectname}"
_rev="$(git rev-list --count HEAD)"
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
_hash="$(git rev-parse --short HEAD)"
if [ -z "${_rev}" ]; then
error "Git commit count could not be determined."
return 1
else
printf '%s' "r${_rev}.${_date}.${_hash}"
fi
}
package() {
cd "${srcdir}/${_projectname}"
printf '%s\n' " --> installing ..."
umask 002
install -d -v -m755 "${pkgdir}/usr/share/marble/data/maps/earth/${_projectname}"
cp -rv * "${pkgdir}/usr/share/marble/data/maps/earth/${_projectname}"/
_docfiles=(
"${srcdir}/git.log"
)
_licensefiles=(
"${srcdir}/license-info.txt"
)
printf '%s\n' " --> installing documentation ..."
for _docfile in "${_docfiles[@]}"; do
install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
done
printf '%s\n' " --> installing license ..."
for _licensefile in "${_licensefiles[@]}"; do
install -D -v -m644 "${_licensefile}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
done
}
|