Based on the standard practices for postmarketOS APKBUILD files and looking at the current version in the pmaports repository, here's what you need to know about the pkgver for linux-samsung-a3y17lte:
-
Correct pkgver Format: The pkgver variable in an APKBUILD should reflect the upstream version of the software being packaged[1][2]. For Linux kernels, this is typically the kernel version number like Major.Minor.Patch (e.g., 3.18.140)[2]. Sometimes, if packaging directly from a git commit instead of a tagged release, a format like $lastrelease_gitYYYYMMDD might be used (e.g., 3.18.140_git20231101)[1].
-
Current Version for linux-samsung-a3y17lte: As of now, the APKBUILD file for linux-samsung-a3y17lte in the main postmarketOS pmaports repository (specifically in the device/testing section) uses pkgver=3.18.140. This corresponds to version 3.18.140 of the Linux kernel, which is the base for this device's specific kernel build.
-
Why 3.x.x is invalid: 3.x.x is a placeholder format. APKBUILD requires a specific, valid version number for the package manager (apk) to handle dependencies and upgrades correctly[1].
-
Where to find the APKBUILD: The definitive source file is located in the postmarketOS pmaports GitLab repository. You can view it online to confirm the current pkgver and other build details.
Therefore, the valid version to put in the pkgver field is currently 3.18.140.
Important Note: You are editing a file within the cache_git directory (~/.local/var/pmbootstrap/cache_git/...). This directory is a temporary cache managed by pmbootstrap[3]. Directly editing files here is generally not recommended as changes might be overwritten when pmbootstrap updates its cache. The standard workflow involves cloning the pmaports repository separately, making changes there, and then using pmbootstrap build --src=/path/to/your/pmaports linux-samsung-a3y17lte to build using your modified sources. However, if you simply need to know the correct version number, 3.18.140 is the one currently used in the main repository.