blob: 42a75e01ac5c5e2ba3cfac8b2723e5d1396fe6a2 (
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
|
# Maintainer: Harrison <htv04rules at gmail com>
# Package info
_pkgname=kmozillahelper
pkgname=$_pkgname-bin
pkgver=5.0.6
pkgrel=22.13
pkgdesc="KDE mozilla integration"
arch=(x86_64 pentium4 i686 aarch64 armv7h)
url="https://github.com/openSUSE/kmozillahelper"
license=(MIT)
depends=(
kio5
ki18n5
knotifications5
kwindowsystem5
)
makedepends=(
curl
jq
)
provides=($_pkgname)
conflicts=($_pkgname)
_opensuse="Tumbleweed"
# RPM
case $CARCH in
pentium4) _arch=i586 ;;
i686) _arch=i586 ;;
armv7h) _arch=armv7hl ;;
*) _arch="$CARCH" ;;
esac
case $_arch in
x86_64 | i586) # Use mozilla repo
_repo=https://download.opensuse.org/repositories/mozilla/openSUSE_$_opensuse/$_arch
;;
*) # Use official (ports) repo
_repo=https://download.opensuse.org/ports/$_arch/${_opensuse,,}/repo/oss/$_arch
;;
esac
_rpm="$(curl $_repo/?jsontable | jq "[.data[] | select(.name | test(\"^$_pkgname-\\\\d\")) | .name] | max" | tr -d '\"')"
if [[ -z $_rpm ]]; then
exit 1
fi
source=($_repo/$_rpm)
sha256sums=(SKIP)
# Build package
package() {
mv "$srcdir/usr" "$pkgdir/usr"
}
|