blob: 1eebc021c6f1554e99dbcfdb71c84a4ae99d0bb0 (
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: György Balló <ballogy@freestart.hu>
_pkgbase="gupnp"
pkgbase="${_pkgbase}-1.0"
pkgname=(
"${_pkgbase}-1.0"
)
pkgver=1.0.7
pkgrel=1
epoch=0
pkgdesc="GObject-based UPNP framework. Legacy 1.0 variant for compatibility with old software."
url="https://wiki.gnome.org/Projects/GUPnP"
arch=(
'aarch64'
'x86_64'
'i686'
'pentium4'
'armv5h'
'armv6h'
'armv7h'
)
license=(LGPL-2.1-or-later)
depends=(
'glib2>=2.44'
'glibc'
'libgssdp-1.0.so' # Provided by 'gssdp-1.0'
libg{lib,object,io,module}-2.0.so
'libsoup>=2.48.0'
'libsoup<3'
'libxml2'
'libutil-linux' # Provided by 'util-linux-libs'.
'libuuid.so' # Provided by 'util-linux-libs'.
)
makedepends=(
'glib2-devel'
'gobject-introspection'
'gssdp-1.0>=1.0.4'
'util-linux-libs'
'meson'
'vala'
)
provides=()
conflicts=()
source=(
"${_pkgbase}-${pkgver}.tar.bz2::https://gitlab.gnome.org/GNOME/${_pkgbase}/-/archive/${_pkgbase}-${pkgver}/${_pkgbase}-${_pkgbase}-${pkgver}.tar.bz2"
)
sha256sums=(
'ffb54f7914a2f7514762693f4ef6604395d759db93bf1f45059184efd60eb345' # Upstream source
)
_CFLAGSADDITIONS="-w -Wno-error=deprecated-declarations"
prepare() {
CFLAGS+=" ${_CFLAGSADDITIONS}"
CXXFLAGS+=" ${_CFLAGSADDITIONS}"
export CFLAGS
export CXXFLAGS
cd "${srcdir}"
if [ -e "${_pkgbase}" ]; then
rm -Rf "${_pkgbase}"
fi
ln -s "${_pkgbase}-${_pkgbase}-${pkgver}" "${_pkgbase}" # Provide a generic directory name that we use later.
cd "${srcdir}/${_pkgbase}"
cd "${srcdir}"
local meson_options=(
-Dcontext_manager=system
-Dgtk_doc=false
-Dintrospection=true
-Dvapi=true
-Dexamples=false
)
# meson subprojects download --sourcedir="${_pkgname}"
# meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_pie=true -D python.bytecompile=1 "${_pkgbase}" build --reconfigure "${meson_options[@]}"
arch-meson "${_pkgbase}" build --reconfigure "${meson_options[@]}"
}
build() {
CFLAGS+=" ${_CFLAGSADDITIONS}"
CXXFLAGS+=" ${_CFLAGSADDITIONS}"
export CFLAGS
export CXXFLAGS
cd "${srcdir}"
meson compile -C build
}
check() {
CFLAGS+=" ${_CFLAGSADDITIONS}"
CXXFLAGS+=" ${_CFLAGSADDITIONS}"
export CFLAGS
export CXXFLAGS
cd "${srcdir}"
meson test -C build --print-errorlogs
}
package_gupnp-1.0() {
CFLAGS+=" ${_CFLAGSADDITIONS}"
CXXFLAGS+=" ${_CFLAGSADDITIONS}"
export CFLAGS
export CXXFLAGS
optdepends=(
'python: For gupnp-binding-tool-1.0'
'gupnp-1.0-docs: Documentation.'
)
provides=(libgupnp-1.0.so)
cd "${srcdir}"
meson install -C build --destdir "${pkgdir}"
cd "${srcdir}/${_pkgbase}"
install -Dvm644 -t "${pkgdir}/usr/share/doc/${pkgbase}" AUTHORS NEWS README
install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" COPYING
}
# vim:set sw=2 sts=-1 et:
|