From 498a069ceb80a4c7b78a0fdbdbaa98caa5e80105 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 15 Jan 2022 17:53:05 +0600 Subject: [PATCH] publish to AUR script added PKGBUILD refined with appropriate .SRCINFO --- Makefile | 12 +++++++++++- aur-struct/.SRCINFO | 2 +- aur-struct/PKGBUILD | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9162d044..0cf70fa4 100644 --- a/Makefile +++ b/Makefile @@ -21,4 +21,14 @@ tar: appimage: appimage-builder --recipe AppImageBuilder.yml\ - && mv Spotube-*-x86_64.AppImage build \ No newline at end of file + && mv Spotube-*-x86_64.AppImage build + +publishaur: + echo '[Warning!]: you need SSH paired with AUR'\ + && rm -rf build/spotube\ + && git clone ssh://aur@aur.archlinux.org/spotube.git build/spotube\ + && cp aur-struct/PKGBUILD aur-struct/.SRCINFO build/spotube\ + && cd build/spotube\ + && git add .\ + && git commit -m "${MSG}"\ + && git push \ No newline at end of file diff --git a/aur-struct/.SRCINFO b/aur-struct/.SRCINFO index dcba3ab0..1c337594 100644 --- a/aur-struct/.SRCINFO +++ b/aur-struct/.SRCINFO @@ -6,6 +6,6 @@ pkgbase = spotube arch = x86_64 license = BSD 4-Clause source = https://github.com/KRTirtho/spotube/releases/download/v1.0.1/Spotube-linux-x86_64.tar.xz + md5sums = 44f79f93ddaf6f0c4e7d133d2fe34bde pkgname = spotube - diff --git a/aur-struct/PKGBUILD b/aur-struct/PKGBUILD index aa4b4e77..448fc3d9 100644 --- a/aur-struct/PKGBUILD +++ b/aur-struct/PKGBUILD @@ -19,7 +19,7 @@ backup=() options=() install= changelog= -source=("https://github.com/KRTirtho/spotube/releases/download/v${version}/Spotube-linux-x86_64.tar.xz") +source=("https://github.com/KRTirtho/spotube/releases/download/v${pkgver}/Spotube-linux-x86_64.tar.xz") noextract=() md5sums=(44f79f93ddaf6f0c4e7d133d2fe34bde) validpgpkeys=()