-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to 2.1.3 and fix for other architectures.
- Loading branch information
Xyne
committed
Dec 10, 2021
1 parent
69523f8
commit c2d4b76
Showing
2 changed files
with
36 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Maintainer: buckket <[email protected]> | ||
|
||
_pkgname=gotify-server | ||
pkgname=$_pkgname-bin | ||
pkgver=2.1.0 | ||
pkgname=${_pkgname}-bin | ||
pkgver=2.1.3 | ||
pkgrel=1 | ||
pkgdesc='A simple server for sending and receiving messages' | ||
arch=('x86_64' 'armv7h' 'aarch64') | ||
arch=('x86_64' 'i686' 'armv7h' 'aarch64') | ||
url='https://github.com/gotify/server' | ||
depends=('glibc') | ||
license=('MIT') | ||
|
@@ -17,24 +17,39 @@ source=("https://raw.githubusercontent.com/gotify/server/v${pkgver}/config.examp | |
'tmpfiles.conf' | ||
'sysusers.conf' | ||
'gotify-server.service') | ||
source_x86_64=("$url/releases/download/v${pkgver}/gotify-linux-amd64.zip") | ||
source_armv7h=("$url/releases/download/v${pkgver}/gotify-linux-arm-7.zip") | ||
source_aarch64=("$url/releases/download/v${pkgver}/gotify-linux-arm64.zip") | ||
|
||
declare -xA _arches | ||
_arches['x86_64']=amd64 | ||
_arches['i686']=386 | ||
_arches['armv7h']=arm-7 | ||
_arches['aarch64']=arm64 | ||
|
||
# Add sources for the supported architectures. | ||
for key in "${!_arches[@]}" | ||
do | ||
declare -n source_x="source_${key}" | ||
source_x=("gotify-linux-${_arches[$key]}-${pkgver}.zip::$url/releases/download/v${pkgver}/gotify-linux-${_arches[$key]}.zip") | ||
done | ||
|
||
sha256sums=('d6f9716c7f67cfb518f3f50a18cbc950ef3e8e9c8ba1f226654dfdd3bf8226d4' | ||
'a8a511e2b98fa548391a1602fcfa05df0e10fae6f5904cbfc4202566f2dd8265' | ||
'14bd1a9270b089b99d9bbe8ebdd0c208c3f74c7347a792d508ffce75b0e1c641' | ||
'150a84f2f89d70c147cc3a2dbddb469f262ed2e8b6d3ffcb74eccb49dfdb2a24' | ||
'9aa04ff9a2981aa885d4f8df7467c4d7722aa12de7ae27376a4a11b559a0d1e2') | ||
sha256sums_x86_64=('7c2bb7946580d5cc7586033e03216336b133cd57a7ad1661ab6da4915ccbdfce') | ||
sha256sums_armv7h=('1b56be7c8793ce359b755fb96aeb2c209df8f859027e6671b0439ec830ae7a70') | ||
sha256sums_aarch64=('ba9665812a0966b83f308e209ef6c808774e4ee98eced508a60b08e5b9929715') | ||
sha256sums_x86_64=('94255062144505bbf48eaf23762140d2d2d34bf72d17165b8a85e52d3bf45493') | ||
sha256sums_i686=('cec96fb0189ef401a7252417008aa2889e9d51eec079f5009ed583daf5591c70') | ||
sha256sums_armv7h=('bb7394414379d3f09b24bfd0778431f1b71b85ff14ccdbc2505afef47c7a3d3f') | ||
sha256sums_aarch64=('78e7d5495e8c6bd2348bb709903ee0e84c65788ac768a7629c10becfe3a0bd52') | ||
|
||
prepare() { | ||
patch --follow-symlinks --forward -o "$srcdir/config.yml" config.example.yml config.patch | ||
} | ||
|
||
# The _arches associative array is not visible inside package(). I don't know | ||
# why. If someone does, please post a solution in the comments. | ||
_exe_name=gotify-linux-${_arches[$CARCH]} | ||
package() { | ||
install -Dm755 gotify-linux-amd64 "$pkgdir/usr/bin/$_pkgname" | ||
install -Dm755 "${_exe_name}" "$pkgdir/usr/bin/$_pkgname" | ||
install -Dm644 "$srcdir/config.yml" "$pkgdir/etc/gotify/config.yml" | ||
install -Dm644 gotify-server.service "$pkgdir/usr/lib/systemd/system/$_pkgname.service" | ||
install -Dm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf" | ||
|