blob: b9459690d5f5d431f9332207f19200e77f65881c (
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
|
# Maintainer: Christophe LAVIE <christophe.lavie@laposte.net>
# Contributor: Christophe LAVIE <christophe.lavie@laposte.net> 18/11/2018
pkgname=devolo-dlan-cockpit
pkgver=5.0.0
_pkgver_short=5.0
pkgrel=1
install=${pkgname}.install
pkgdesc="Display and configure settings of your devolo device"
arch=('i686' 'x86_64')
url="https://www.devolo.com/support/downloads/download/devolo-cockpit.html"
license=('nonfree')
depends=( 'adobe-air-sdk>=2.6' 'libgnome-keyring' )
if [ "${CARCH}" = "x86_64" ]; then
_arch="amd64"
else
_arch="i386"
fi
source=("https://www.devolo.fr/fileadmin/Web-Content/DE/Contentseiten/Downloads/Software/devolo-cockpit-v${_pkgver_short//./-}-linux.run"
'devolonetsvc.service')
build() {
cd $srcdir
skip=$(grep -a -m1 -n "HERE_BE_DRAG[O]NS" "devolo-cockpit-v${_pkgver_short//./-}-linux.run" | cut -d: -f1)
tail "devolo-cockpit-v${_pkgver_short//./-}-linux.run" -n +$((skip+1)) | tar -x -C .
ar x "devolo-dlan-cockpit_${pkgver}-0_${_arch}.deb"
find . -name "adobeair*${_arch}.deb" -print | xargs ar x
tar xvf data.tar.gz
sed -i 's/\.appdata\//~\/\.appdata\//g' "${srcdir}/opt/devolo/dlancockpit/bin/dlancockpit-run.sh"
echo "StartupWMClass=dlancockpit" >> "${srcdir}/usr/share/applications/devolo-dlan-cockpit.desktop"
}
package() {
cp -r "${srcdir}/opt" "${srcdir}/usr" "${pkgdir}/"
ln -s "/opt/adobe-air-sdk/runtimes/air/linux/Adobe AIR/" "${pkgdir}/opt/Adobe AIR"
mkdir -p "${pkgdir}/var/lib/devolonetsvc"
printf "<?xml version="1.0" encoding="utf-8"?>\n<data_collection><allowed>2</allowed></data_collection>" > "${srcdir}/config.xml"
install -Dm644 "${srcdir}/config.xml" "${pkgdir}/var/lib/devolonetsvc/config.xml"
install -Dm644 "${srcdir}/devolonetsvc.service" "${pkgdir}/usr/lib/systemd/system/devolonetsvc.service"
}
md5sums=('abbb702b2fd56ada8aec65d8d1ad73db'
'6784ae1b639217439ddcb3f43a99c7bb')
|