blob: 0236badac35590bf2876e8ca600e35d620d2929c (
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
|
# Maintainer: Yann Buechau <nobodyinperson at posteo de>
pkgname=tksuite-server-agfeo
pkgver=4.4.42
pkgrel=2
epoch=
pkgdesc="AGFEO TK-Suite Professional telephone system configuration tool"
arch=(x86_64 i686)
url="https://www.agfeo.de"
license=(GPL LGPL custom:iMatix custom:SFL custom:SMT)
groups=()
depends=()
depends_i686=(glibc)
depends_x84_64=(lib32-glibc)
makedepends=(imagemagick)
checkdepends=()
optdepends=(
"zenity: graphical error message when launched from .desktop-file"
"xdg-utils: open the web interface from the .desktop-file"
)
provides=()
conflicts=()
replaces=()
backup=(etc/conf.d/tksuite_server.cfg)
options=()
install=
changelog=
_version_string=${pkgname//-/_}_${pkgver}_linux-x86
source=(
"ftp://ftp.agfeo.de/pub/software/${_version_string}.tgz"
"${pkgname}.service"
"${pkgname}.desktop"
"${pkgname}-launch"
)
noextract=()
validpgpkeys=()
md5sums=('e8df3f97cef660965732cb08e022cd60'
'82703c655eb99b32b55148692e77c9c4'
'a531975807cbb4d51b2821812a2d803b'
'150efe9268b4557c19aab2e99ca77dec')
build() {
cd "${_version_string}"
convert tksuite_server/webpages/images/app_menu_off.gif -resize 48x48 "$pkgname".png
cat tksuite_server/defaults.cfg | sed 's/\/var\//\/var\/lib\//' > tksuite_server.cfg
}
package() {
cd "${_version_string}"
mkdir -p "$pkgdir"/usr/share
mkdir -p "$pkgdir"/var/lib/tksuite_server
cp -ar tksuite_server/ "$pkgdir"/usr/share/"$pkgname"
install -m644 "$startdir"/"$pkgname".service -Dt "$pkgdir"/usr/lib/systemd/system
install -m644 "$pkgname".png -Dt "$pkgdir"/usr/share/icons/hicolor/scalable/apps
install -m644 "$startdir"/"$pkgname".desktop -Dt "$pkgdir"/usr/share/applications
install -m755 "$startdir"/"$pkgname"-launch -Dt "$pkgdir"/usr/bin
install -m644 tksuite_server.cfg -Dt "$pkgdir"/etc/conf.d/
rm "$pkgdir"/usr/share/"$pkgname"/defaults.cfg
ln -s /etc/conf.d/tksuite_server.cfg "$pkgdir"/usr/share/"$pkgname"/defaults.cfg
install -m644 tksuite_server/webpages/license*.txt -Dt "$pkgdir"/usr/share/licenses/"$pkgname"
}
|