add script/pkg

This commit is contained in:
Hailey Somerville 2024-03-08 21:06:48 +11:00
parent 4edcefb898
commit 59c156e8bb
2 changed files with 8 additions and 3 deletions

6
script/pkg Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/.."
rm -rf dist
script/pkg-arch

View file

@ -1,14 +1,13 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/../pkg/arch"
# reset
rm -rf pkg
rm *.pkg.tar.zst
rm -f *.pkg.tar.zst
# build
makepkg --nodeps --force --clean
makepkg --force --clean
# copy built package into dist dir in the repo root
mkdir -p ../../dist