mirror of https://github.com/built-aur/packages
update
This commit is contained in:
parent
0189924ef9
commit
9f6d8c4f51
|
@ -78,35 +78,6 @@ update-package() {
|
||||||
|
|
||||||
if [ -f "${pkgdir}/built.conf" ]
|
if [ -f "${pkgdir}/built.conf" ]
|
||||||
then
|
then
|
||||||
# if package has a AUR_PUSH flag push it to AUR
|
|
||||||
if [ -n "${AUR_PUSH}" ]
|
|
||||||
then
|
|
||||||
git clone "ssh://aur@aur.archlinux.org/${AUR_PUSH}.git" "${TMP_DIR}/aur/${AUR_PUSH}"
|
|
||||||
|
|
||||||
mkdir -p "${TMP_DIR}/aur/${AUR_PUSH}" || true
|
|
||||||
|
|
||||||
cd "${TMP_DIR}/aur/${AUR_PUSH}"
|
|
||||||
|
|
||||||
# delete old files
|
|
||||||
rm -rf *
|
|
||||||
|
|
||||||
# copy new files
|
|
||||||
cp -r "${pkgdir}/*" .
|
|
||||||
|
|
||||||
# generate .SRCINFO
|
|
||||||
makepkg --printsrcinfo > .SRCINFO
|
|
||||||
|
|
||||||
# delete built config
|
|
||||||
rm -rf 'built.conf'
|
|
||||||
|
|
||||||
# commit and push package to AUR
|
|
||||||
git add .
|
|
||||||
git commit -m "upgpkg: '${pkgname}' to '${latest_version}'"
|
|
||||||
git push
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "${SRC_DIR}"
|
|
||||||
|
|
||||||
# check the package updates from github
|
# check the package updates from github
|
||||||
if [ -n "${GITHUB_REPO}" ]
|
if [ -n "${GITHUB_REPO}" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue