Hey,
like somebody may know, i try to figure out how to upload a PKGBUILD to AUR.
Now i have set up my VM where i can learn/test it how to do it.
I followed this Guide: https://wiki.archlinux.org/title/AUR_submission_guidelines
But it didnt seem to work.
I have done this:
I crated the config file under .ssh with the content:
Host aur.archlinux.org
IdentityFile ~/.ssh/aur
User aur
Than i created a SSH Key pair with
ssh-keygen -f ~/.ssh/aur
then i uploaded the content of aur.pub to my aur profile.
Than i have done this:
git clone ssh://aur@aur.archlinux.org/pkgbase.git
Than this:
git remote add label ssh://aur@aur.archlinux.org/pkgbase.git
And got this Error?:
[user@endeavourosvm ~]$ git remote add label ssh://aur@aur.archlinux.org/pkgbase.git
fatal: Kein Git-Repository (oder irgendein Elternverzeichnis bis zum Einhängepunkt /)
Stoppe bei Dateisystemgrenze (GIT_DISCOVERY_ACROSS_FILESYSTEM nicht gesetzt).
[user@endeavourosvm ~]$
And what i find interessting, i have following PKGBUILD in the pkgbase folder:
Maintainer Seva Alekseyev sevaa@yarxi.ru
Maintainer Stoyan Minaev stoyan.minaev@gmail.com
pkgbase=pkgbase
pkgname=yarxi
pkgver=1.10
pkgrel=1
pkgdesc=âJapanese-Russian kanji and word dictionaryâ
url=âhttp://www.susi.ru/yarxi/â
license=(âcustomâ)
_source=(
âhttp://www.susi.ru/yarxi/yarxi_${pkgver}-${pkgrel}_amd64.debâ
âhttp://ftp.uk.debian.org/debian/pool/main/q/qt4-x11/libqtcore4_4.8.7+dfsg-11_amd64.debâ
âhttp://ftp.uk.debian.org/debian/pool/main/q/qt4-x11/libqtgui4_4.8.7+dfsg-11_amd64.debâ
âhttp://ftp.uk.debian.org/debian/pool/main/q/qt4-x11/libqt4-network_4.8.7+dfsg-11_amd64.debâ
)
arch=(âx86_64â)
_md5sums=(
â812d2265816ed781751c5c0eb6664d91â
âb243ada8569b2b3d4586dc4178fd8d56â
â797e351a57c9d56368f710e7cba40f21â
âb3cff12767e21d3a76794046557d3df0â
)
depends=(
ttf-sazanami nas
)prepare() {
cd $srcdir/
echo âDue to âmakepkgâ and âPKGBUILDâ specs limitations I need to dowanload sources and validate them by myselfâ
for source_url in ${_source[@]}; do
source_filename=${source_url##/}
if [ ! -f â$source_filenameâ ]; then
echo âDownloading next source - $source_filename âŚâ
curl -A DUMMY -O â$source_urlâ;
else
echo âFound already downloaded source - $source_filenameâ
fi
done
echo âAnd now we must validated dowanloaded sources âŚâ
for (( i=0; i<${#_source[@]}; ++i )); do
source_url=${_source[i]}
source_filename=${source_url##/}
source_expected_md5sum=${_md5sums[i]}
source_actual_md5sum=$(md5sum $source_filename | awk â{print $1}â)
if [ â$source_actual_md5sumâ == â$source_expected_md5sumâ ]; then
echo âValidated next source - $source_filenameâ
else
echo âFound corrupted source - $source_filenameâ; return 1
fi
done
}build() {
cd $srcdir/
mkdir -p deb/{$pkgname,qt4core,qt4gui,qt4network}
bsdtar xf yarxi_${pkgver}-${pkgrel}_amd64.deb -C deb/$pkgname/
bsdtar xf libqtcore4_4.8.7+dfsg-11_amd64.deb -C deb/qt4core/
bsdtar xf libqtgui4_4.8.7+dfsg-11_amd64.deb -C deb/qt4gui/
bsdtar xf libqt4-network_4.8.7+dfsg-11_amd64.deb -C deb/qt4network/
for dir in deb/$pkgname deb/qt4core deb/qt4gui deb/qt4network; do
cd $dir; tar xf data.tar.*; cd $srcdir
done
}package() {
cd $srcdir/
mkdir -p $pkgdir/usr/lib/
mkdir -p $pkgdir/usr/bin/
mkdir -p $pkgdir/usr/share/
mkdir -p $pkgdir/usr/share/applications/
mkdir -p $pkgdir/usr/share/doc/$pkgname/
mkdir -p $pkgdir/usr/share/icons/hicolor/{16x16/apps,32x32/apps,48x48/apps}/
mkdir -p $pkgdir/usr/share/pixmaps/
mkdir -p $pkgdir/usr/share/$pkgname/
install -m 0755 $srcdir/deb/$pkgname/usr/bin/$pkgname $pkgdir/usr/bin/$pkgname
install -m 0755 $srcdir/deb/qt4core/usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.7 $pkgdir/usr/lib/libQtCore.so.4
install -m 0755 $srcdir/deb/qt4gui/usr/lib/x86_64-linux-gnu/libQtGui.so.4.8.7 $pkgdir/usr/lib/libQtGui.so.4
install -m 0755 $srcdir/deb/qt4network/usr/lib/x86_64-linux-gnu/libQtNetwork.so.4.8.7 $pkgdir/usr/lib/libQtNetwork.so.4
install -m 0644 $srcdir/deb/$pkgname/usr/share/applications/seva-yarxi.desktop $pkgdir/usr/share/applications/
install -m 0644 $srcdir/deb/$pkgname/usr/share/doc/$pkgname/copyright $pkgdir/usr/share/doc/$pkgname/
for icons in 16x16 32x32 48x48; do
install -m 0644 $srcdir/deb/$pkgname/usr/share/icons/hicolor/$icons/apps/seva-yarxi.png $pkgdir/usr/share/icons/hicolor/$icons/apps/
done
install -m 0644 $srcdir/deb/$pkgname/usr/share/pixmaps/*.xpm $pkgdir/usr/share/pixmaps/
install -m 0644 $srcdir/deb/$pkgname/usr/share/$pkgname/yarxice.db $pkgdir/usr/share/$pkgname/
}#vim: syntax=sh
For what? As example? Have i to delete this?
Anyway, replaced it with my PKGBUILD.
and tried:
git add PKGBUILD
But got same Error? like above.
So, i dont know what further todo and need help
(and im still mad that i cant simply upload via browser!! )