Add upload script and prepare client for makedeb
This commit is contained in:
parent
fbcadeb882
commit
ef582aaff8
4 changed files with 38 additions and 4 deletions
19
client/PKGBUILD
Normal file
19
client/PKGBUILD
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
|
||||||
|
pkgname=emgauwa-client
|
||||||
|
pkgver=0.0.12
|
||||||
|
pkgrel=1
|
||||||
|
epoch=
|
||||||
|
pkgdesc='Webapp client for emgauwa'
|
||||||
|
arch=('any')
|
||||||
|
url="https://git.serguzim.me/emgauwa/client"
|
||||||
|
license=('unknown')
|
||||||
|
groups=()
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::https://git.serguzim.me/emgauwa/client/releases/download/v$pkgver/emgauwa.tar.gz"
|
||||||
|
"webapp.conf")
|
||||||
|
sha256sums=('59f0c83a632ad5c7b65b101482e428a42080a23639ac58b21e9e9cd94b6d4544'
|
||||||
|
'1179e30b5fb9f8b2a5dc27989cfee8cca3b01dfa54f8af474cddced998fb91ff')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -d "$pkgdir/usr/share/webapps/"
|
||||||
|
cp -R "$srcdir/emgauwa" "$pkgdir/usr/share/webapps/emgauwa"
|
||||||
|
}
|
19
upload-gitea-package.sh
Executable file
19
upload-gitea-package.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
package="$1"
|
||||||
|
credentials="$2"
|
||||||
|
|
||||||
|
cd "$package"
|
||||||
|
|
||||||
|
# Source infos
|
||||||
|
. "/etc/makepkg.conf"
|
||||||
|
. "PKGBUILD"
|
||||||
|
|
||||||
|
package_name="${pkgname}_${CARCH}.deb"
|
||||||
|
package_path="${pkgname}_${pkgver}-${pkgrel}_${CARCH}.deb"
|
||||||
|
|
||||||
|
curl --user "$credentials" \
|
||||||
|
--upload-file "$package_path" \
|
||||||
|
"https://git.serguzim.me/api/packages/emgauwa/generic/$pkgname/$pkgver/$package_name"
|
|
@ -1,4 +0,0 @@
|
||||||
[core]
|
|
||||||
content-dir = "/usr/share/webapps/emgauwa"
|
|
||||||
not-found-file = "/usr/share/webapps/emgauwa/index.html"
|
|
||||||
not-found-file-mime = "text/html"
|
|
Reference in a new issue