{"id":22136150,"url":"https://github.com/stunkymonkey/aur-pkgbuild-tester","last_synced_at":"2025-07-25T20:32:36.785Z","repository":{"id":52895714,"uuid":"122648125","full_name":"Stunkymonkey/aur-pkgbuild-tester","owner":"Stunkymonkey","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-07T20:07:59.000Z","size":7,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T01:11:32.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Stunkymonkey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-23T16:52:45.000Z","updated_at":"2024-02-08T12:53:49.000Z","dependencies_parsed_at":"2022-08-23T08:30:38.982Z","dependency_job_id":null,"html_url":"https://github.com/Stunkymonkey/aur-pkgbuild-tester","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stunkymonkey%2Faur-pkgbuild-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stunkymonkey%2Faur-pkgbuild-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stunkymonkey%2Faur-pkgbuild-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stunkymonkey%2Faur-pkgbuild-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stunkymonkey","download_url":"https://codeload.github.com/Stunkymonkey/aur-pkgbuild-tester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227614874,"owners_count":17793985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T19:19:44.032Z","updated_at":"2025-07-25T20:32:36.773Z","avatar_url":"https://github.com/Stunkymonkey.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automate PKGBUILD testing with Docker\n\nThe script prepares a [Docker](https://docker.com) container where the process will run into, and accepts two arguments:\n\n1. Path of the **directory** containing the PKGBUILD\n2. Path of the **shell script** you want the container to run to check if the package is correctly installed\n\nThe [PKGBUILD](https://wiki.archlinux.org/index.php/PKGBUILD) (and its sources) and the optional tester script are mounted into the container through the Docker's _volumes_ abstraction.\n\nHow to run it:\n\n```sh\n./aur-pkgbuild-tester.sh \\\n    ./my-package-files \\\n    ./custom-test-installation.sh\n```\n\nOr\n\n```sh\n./aur-pkgbuild-tester.sh \\\n    ./my-package-files\n```\n\n\n\nThree stages:\n\n1. The container with a fresh, minimal ArchLinux installation is created\n2. The [PKGBUILD](https://wiki.archlinux.org/index.php/PKGBUILD) is built **inside the container**\n3. If specified, the tester script is run inside the container\n\n\nTo spawn a minimal ArchLinux installation the script uses the [base/archlinux](https://hub.docker.com/r/base/archlinux/) (which is updated daily) and non-interactively installs the required packages to build the package (`sudo`, `binutils`, `fakeroot`).\n\n\nThen, inside the container, it creates a non-root user to build the package (running `makepkg` as root [is disallowed](https://wiki.archlinux.org/index.php/makepkg)); if the build fails the script quits with a **non-zero code**, meaning that something is wrong in the PKGBUILD or the sources.\n\nAfter building and installing the package, the script runs a _tester_ script, which by default is `/bin/true` but that can be overridden by passing the second argument to the script. The purpose of this tester script is making sure that the application installed works correctly.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstunkymonkey%2Faur-pkgbuild-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstunkymonkey%2Faur-pkgbuild-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstunkymonkey%2Faur-pkgbuild-tester/lists"}