{"id":16005402,"url":"https://github.com/64kramsystem/ppa_packaging","last_synced_at":"2026-03-10T10:06:44.812Z","repository":{"id":55375327,"uuid":"266985786","full_name":"64kramsystem/ppa_packaging","owner":"64kramsystem","description":"Scripts for easily preparing PPA packages","archived":false,"fork":false,"pushed_at":"2022-11-11T13:59:17.000Z","size":75,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T15:13:47.415Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/64kramsystem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-26T08:22:58.000Z","updated_at":"2023-11-16T17:22:04.000Z","dependencies_parsed_at":"2023-01-22T18:30:14.946Z","dependency_job_id":null,"html_url":"https://github.com/64kramsystem/ppa_packaging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/64kramsystem/ppa_packaging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64kramsystem%2Fppa_packaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64kramsystem%2Fppa_packaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64kramsystem%2Fppa_packaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64kramsystem%2Fppa_packaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/64kramsystem","download_url":"https://codeload.github.com/64kramsystem/ppa_packaging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/64kramsystem%2Fppa_packaging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30329698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-08T11:04:24.977Z","updated_at":"2026-03-10T10:06:44.788Z","avatar_url":"https://github.com/64kramsystem.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PPA Packaging\n\nScript for preparing PPA packages. No need to handle all the messy Debian tools 😬\n\nThe purpose and working has been described in [an article](https://saveriomiroddi.github.io/Learn-to-prepare-PPA-packages-by-setting-up-a-Ruby-PPA/) in my blog.\n\n## Usages\n\nThe program is driven by enviroment variables, which need to be set:\n\n```sh\n# Details of the env variables are described in the script help (`prepare_ppa_package --help`).\n\nexport PPA_PAK_LAUNCHPAD_ID='myuser'\nexport PPA_PAK_EMAIL='myuser@gmail.com'\n\nexport PPA_PAK_COPYRIGHT='gpl2'\nexport PPA_PAK_DESCRIPTION='Interpreter of object-oriented scripting language Ruby'\nexport PPA_PAK_HOMEPAGE='https://www.ruby-lang.org/'\nexport PPA_PAK_DISTROS='focal,jammy'\nexport PPA_PAK_SECTION='interpreters'\nexport PPA_PAK_BUILD_DEPS='autoconf,automake,bison,ca-certificates,curl,libc6-dev,libffi-dev,libgdbm-dev,libncurses5-dev,libsqlite3-dev,libtool,libyaml-dev,make,openssl,patch,pkg-config,sqlite3,zlib1g,zlib1g-dev,libreadline-dev,libssl-dev,libgmp-dev'\n\n# These activate one of the two different modes, based on the format; see sections below.\n#\nexport PPA_PAK_PACKAGE_NAME='foo'\nexport PPA_PAK_VERSION='bar'\n\n# This will launch the procedure.\n#\n# `--cowbuild` will perform a test build locally, before uploading to Launchpad.\n#\nprepare_ppa_package --cowbuild /path/to/ruby\n```\n\nThe above command will prepare the deb source package and upload it to Launchpad, which will build the binary packages and make them available in the specified PPA 😁\n\n### Tarball-based workflow\n\nWhen publishing a package from a (unpacked) tarball, one specifies the exact package name and version:\n\n```sh\nexport PPA_PAK_VERSION='3.1.2'\nexport PPA_PAK_PACKAGE_NAME='ruby3.1'\n```\n\nThe disadvantage, in this mode, is that one needs to manually find and unpack the tarball, and set the variables above.\n\n### Repository-based workflow\n\nIn this mode, one provides the repository, and specifies a regex that describes the version tag and package name:\n\n```sh\n# Note that this variable has a leading and trailing slash, and captures the version numbers in round brackets (capturing groups).\n#\nexport PPA_PAK_VERSION='/v(3)_(1)_([0-9]+)/'\nexport PPA_PAK_PACKAGE_NAME='ruby$1.$2'\n```\n\nThe program will:\n\n- fetch the latest tags,\n- find the latest one (based on `$PPA_PAK_VERSION`),\n- check it out,\n- then prepare the package version and name using the capturing groups matched by `$PPA_PAK_VERSION`,\n- and follow up with the same procedure as the tarball mode.\n\nWith the example variables above, the resulting metadata is:\n\n- latest tag: `v3_1_2`\n- package version: `3.1.2`\n- package name: `ruby3.1`\n\nIf the package name is fixed, it's not necessary to specify matching variables.\n\n## Licenses\n\nDue to limitations of the `dh_make` tool, only a few preset licenses are available (see script help), and multiple licenses are not possible; as of v2.202102 (Oct/2022), the MIT license is not included.\n\nIn order to specify any other license(s), create a license file, and set it as `PPA_PAK_COPYRIGHT` value.\n\n## Presets\n\nSee the [`presets`](presets) directory for some preset configurations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64kramsystem%2Fppa_packaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F64kramsystem%2Fppa_packaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F64kramsystem%2Fppa_packaging/lists"}