#!/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"