#!/bin/bash # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. version=@version@ [[ -r @libdir@/util-msg.sh ]] && source @libdir@/util-msg.sh [[ -r @libdir@/util.sh ]] && source @libdir@/util.sh load_vars "$HOME/.makepkg.conf" load_vars /etc/makepkg.conf if [ ! -e "$1" ]; then error "Package '$1' does not exists!" exit 1 fi msg "Signing package '$1' with key ${GPGKEY}..." gpg --detach-sign --use-agent -u "${GPGKEY}" "$1"