mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2019-08-23 b1ccd2b9ff7e040e53d4d86b4fd88302d5fa42de
add_package.sh
old mode 100644 new mode 100755
@@ -1,4 +1,19 @@
#!/bin/bash
CHDIR=$(dirname "$(realpath $0)")/chroot 
$CHDIR/bin/arch-chroot $CHDIR su joel -c "cd /build/repo; git clone $1"
mount --bind $CHDIR $CHDIR
$CHDIR/bin/arch-chroot $CHDIR su joel -c "cd /build/repo;
                                        git clone https://aur.archlinux.org/$1.git
                                cd $1;
                                makepkg -s --noconfirm;
                                ln $1-*.pkg.tar.xz ../x86_64/;
                                cd ../x86_64;
                                rm Chizi123.db Chizi123.files;
                                repo-add ../Chizi123.db.tar.xz $1-*.pkg.tar.xz;
                                ln ../Chizi123.db.tar.xz Chizi123.db;
                                ln ../Chizi123.files.tar.xz Chizi123.files;
                                cd ../;
                                git add x86_64/;
                                git commit -m \"added $1\";
                                git push"
umount $CHDIR