update: some tests for upgrade

This commit is contained in:
2025-12-29 17:51:15 -05:00
parent 8b090ab6e4
commit c54858c18a
4 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
pkgname="just-etc-test"
pkgver="2.0"
homepage="https://gitea.phywyj.dynv6.net"
pkgdesc="just touch /etc/test"
license=("GPL")
sources=()
urls=()
md5sums=()
src_prepare() {
:
}
src_build() {
echo 1 > "test"
}
src_check() {
:
}
src_install() {
echo "src_install"
install -D -v -m644 "test" "${pkgdir}/etc/test"
}

View File

@@ -0,0 +1,26 @@
pkgname="upgrade-test"
pkgver="1.0"
homepage="https://gitea.phywyj.dynv6.net"
pkgdesc="place two files for upgrading test"
license=("GPL")
sources=()
urls=()
md5sums=()
src_prepare() {
:
}
src_build() {
touch upgrade-test-1
echo 1 > upgrade-test-2
}
src_check() {
:
}
src_install() {
install -D -v -m644 "upgrade-test-1" "${pkgdir}/"
install -D -v -m644 "upgrade-test-2" "${pkgdir}/"
}

View File

@@ -0,0 +1,26 @@
pkgname="upgrade-test"
pkgver="2.0"
homepage="https://gitea.phywyj.dynv6.net"
pkgdesc="place two files for upgrading test"
license=("GPL")
sources=()
urls=()
md5sums=()
src_prepare() {
:
}
src_build() {
echo 2 > upgrade-test-2
touch upgrade-test-3
}
src_check() {
:
}
src_install() {
install -D -v -m644 "upgrade-test-2" "${pkgdir}/"
install -D -v -m644 "upgrade-test-3" "${pkgdir}/"
}