Simplified build script
This commit is contained in:
parent
d829d21394
commit
f08aecbc53
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
.chroot
|
||||
*.db
|
||||
*.files
|
||||
*.gz
|
||||
*.log
|
||||
*.old
|
||||
*.zst
|
38
build.fish
Normal file → Executable file
38
build.fish
Normal file → Executable file
@ -1,14 +1,32 @@
|
||||
#!/bin/fish
|
||||
set NAME akyoto
|
||||
set CHROOT /srv/arch/.chroot
|
||||
set REPO akyoto
|
||||
set CHROOT $PWD/.chroot
|
||||
|
||||
rm -f ./*.pkg.tar.zst
|
||||
|
||||
for file in **/PKGBUILD
|
||||
cd (dirname $file)
|
||||
makechrootpkg -cur $CHROOT
|
||||
mv ./*.pkg.tar.zst ../
|
||||
cd -
|
||||
if not command -q mkarchroot
|
||||
echo "Please install devtools:"
|
||||
echo "sudo pacman -Syu devtools"
|
||||
exit 1
|
||||
end
|
||||
|
||||
repo-add --remove $NAME.db.tar.gz *.pkg.tar.zst
|
||||
if not test -d $CHROOT/root
|
||||
mkdir -p $CHROOT
|
||||
mkarchroot $CHROOT/root base-devel
|
||||
end
|
||||
|
||||
if set -q argv[1]
|
||||
cd $argv[1]
|
||||
makechrootpkg -cur $CHROOT
|
||||
mv *.pkg.tar.zst ../
|
||||
cd -
|
||||
else
|
||||
rm -f *.pkg.tar.zst
|
||||
|
||||
for file in **/PKGBUILD
|
||||
cd (dirname $file)
|
||||
makechrootpkg -cur $CHROOT
|
||||
mv *.pkg.tar.zst ../
|
||||
cd -
|
||||
end
|
||||
end
|
||||
|
||||
repo-add --remove $REPO.db.tar.gz *.pkg.tar.zst
|
@ -1,7 +1,7 @@
|
||||
# Maintainer: Eduard Urbach <admin@akyoto.dev>
|
||||
pkgname=akyoto-desktop
|
||||
pkgver=1
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc="Desktop packages"
|
||||
arch=('any')
|
||||
url="https://git.akyoto.dev/sys/arch"
|
||||
@ -75,7 +75,6 @@ depends=(
|
||||
# Virtualization
|
||||
'dmidecode'
|
||||
'dnsmasq'
|
||||
'iptables-nft'
|
||||
'qemu-desktop'
|
||||
'virt-manager'
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Maintainer: Eduard Urbach <admin@akyoto.dev>
|
||||
pkgname=akyoto-devel
|
||||
pkgver=1
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="Development packages"
|
||||
arch=('any')
|
||||
url="https://git.akyoto.dev/sys/arch"
|
||||
@ -11,7 +11,7 @@ depends=(
|
||||
|
||||
# C/C++
|
||||
'clang'
|
||||
'ldd'
|
||||
'lld'
|
||||
|
||||
# Go
|
||||
'go'
|
||||
|
Loading…
Reference in New Issue
Block a user