21 lines
394 B
Bash
Executable file
21 lines
394 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
package="$1"
|
|
credentials="$2"
|
|
|
|
cd "$package"
|
|
|
|
makedeb -s
|
|
|
|
# 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"
|