blob: 2aeb42acc5cad37d115d1f3052c9ee85207ed03e (
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
|
# Maintainer: dreieck
# Contributor: Ionut Biru <ibiru@archlinux.org>
_pkgname='empathy'
pkgname="${_pkgname}-git"
pkgver=3.25.90.93+r13046.20210512.19a4dd3a4
pkgrel=5
pkgdesc="A GNOME instant messaging client using the Telepathy framework. Latest git checkout."
url="https://wiki.gnome.org/Apps/Empathy"
arch=(
'x86_64'
'i686'
)
license=('GPL2')
depends=(
'clutter-gst>=3.0'
folks-telepathy
gcr
geoclue2
geocode-glib
iso-codes
libcanberra
libchamplain
libgudev
libnotify
libpulse
telepathy-farstream
telepathy-glib
telepathy-logger
telepathy-mission-control
webkit2gtk
)
makedepends=(
'docbook-xsl'
'gnome-common'
'git'
'intltool'
'itstool'
'python'
)
optdepends=(
'telepathy-gabble: XMPP/Jabber support'
'telepathy-haze: libpurple support'
'telepathy-idle: IRC support'
'telepathy-salut: Link-local XMPP support'
'telepathy-tank: Matrix support'
)
provides=("empathy=${pkgver}")
conflicts=("empathy")
source=(
"${_pkgname}::git+https://git.gnome.org/browse/empathy.git"
"telepathy-account-widgets::git+https://git.gnome.org/browse/telepathy-account-widgets.git"
'enchant-2.patch'
)
sha256sums=(
'SKIP'
'SKIP'
'f177f0dfc242018dd52e312637f513fd08f64aa991b45930cc3ea9a2576f795e'
)
# options+=('debug' '!lto')
pkgver() {
cd "${srcdir}/${_pkgname}"
_ver="$(git describe --tags | sed 's|^v||' | sed 's|-[^-]*$||' | tr '-' '.')"
_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 "${_ver}" ]; then
error "Version could not be determined."
return 1
else
printf '%s' "${_ver}+r${_rev}.${_date}.${_hash}"
fi
}
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule init
git config --local submodule.telepathy-account-widgets.url "$srcdir/telepathy-account-widgets"
git -c protocol.file.allow=always submodule update
patch -Np1 -i ../enchant-2.patch
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/${_pkgname}"
export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/empathy \
--disable-static \
--disable-Werror \
--enable-shared \
--disable-static \
--disable-valgrind \
--enable-gprof=no \
--disable-debug \
--enable-nls \
--enable-gudev=yes \
--enable-spell=yes \
--enable-map=yes \
--enable-location=yes \
--enable-geocode=yes \
--enable-goa=yes \
--enable-ubuntu-online-accounts=no \
--disable-coding-style-checks \
--with-x
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="$pkgdir" install
}
|