aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-29 08:52:10 -0300
committerEuAndreh <eu@euandre.org>2023-03-29 09:03:34 -0300
commitf0ce5d2f46988fc894ef4ffadf91ddc59ecfe708 (patch)
tree675090528206f2ff9825ab786753f26a6641ad83
parentsrc/secrets/eu@euandre.org.rsa: Rotate keypair (diff)
downloadpackage-repository-f0ce5d2f46988fc894ef4ffadf91ddc59ecfe708.tar.gz
package-repository-f0ce5d2f46988fc894ef4ffadf91ddc59ecfe708.tar.xz
src/bin/paku.in: Parameterize Alpine subpackages via paku.lock
-rw-r--r--paku.lock10
-rw-r--r--src/alpine/td/APKBUILD2
-rwxr-xr-xsrc/bin/paku.in10
3 files changed, 20 insertions, 2 deletions
diff --git a/paku.lock b/paku.lock
index 923ccbd..cdc17f7 100644
--- a/paku.lock
+++ b/paku.lock
@@ -46,6 +46,8 @@
"changelog": "https://euandre.org/s/git-permalink/CHANGELOG.html",
"downloads-page": "https://euandre.org/s/git-permalink/#releases",
"fname": "git-permalink-v0.1.0.tar.xz",
+ "manpages": true,
+ "i18n": false,
"maintainer": "EuAndreh <eu@euandre.org>",
"maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==",
"architectures": "any",
@@ -73,6 +75,8 @@
"changelog": "https://euandre.org/s/git-permalink/CHANGELOG.html",
"downloads-page": "https://euandre.org/s/git-permalink/#releases",
"fname": "git-permalink-v0.2.0.tar.xz",
+ "manpages": true,
+ "i18n": false,
"maintainer": "EuAndreh <eu@euandre.org>",
"maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==",
"architectures": "any",
@@ -100,6 +104,8 @@
"changelog": "https://euandre.org/s/remembering/CHANGELOG.html",
"downloads-page": "https://euandre.org/s/remembering/#releases",
"fname": "remembering-v0.1.2.tar.xz",
+ "manpages": true,
+ "i18n": false,
"maintainer": "EuAndreh <eu@euandre.org>",
"maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==",
"architectures": "any",
@@ -127,6 +133,8 @@
"changelog": "https://euandre.org/s/td/CHANGELOG.html",
"downloads-page": "https://euandre.org/s/td/#releases",
"fname": "td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz",
+ "manpages": true,
+ "i18n": true,
"maintainer": "EuAndreh <eu@euandre.org>",
"maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==",
"architectures": "any",
@@ -165,6 +173,8 @@
"changelog": "https://euandre.org/s/guile-heredoc/CHANGELOG.html",
"downloads-page": "https://euandre.org/s/guile-heredoc/#releases",
"fname": "guile-heredoc-065435cdce609604e33b879b9be3e81ab89f3e7b.tar.xz",
+ "manpages": true,
+ "i18n": false,
"maintainer": "EuAndreh <eu@euandre.org>",
"maintainer-b64": "RXVBbmRyZWggPGV1QGV1YW5kcmUub3JnPg==",
"description": "Guile heredoc syntax",
diff --git a/src/alpine/td/APKBUILD b/src/alpine/td/APKBUILD
index 3112b35..829107e 100644
--- a/src/alpine/td/APKBUILD
+++ b/src/alpine/td/APKBUILD
@@ -10,7 +10,7 @@ depends=''
makedepends=''
checkdepends=''
install=''
-subpackages='td-doc'
+subpackages='td-doc td-lang'
source='https://euandre.org/git/td/snapshot/td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8.tar.xz'
builddir="$srcdir/td-4a8a7a2662c94b2581f587e9a4b81feba4f5e7d8"
diff --git a/src/bin/paku.in b/src/bin/paku.in
index b7b06d7..adcba3e 100755
--- a/src/bin/paku.in
+++ b/src/bin/paku.in
@@ -504,6 +504,14 @@ sub emit_alpine() {
my $d = $ARGV[0] or die 'Missing "src/alpine/" directory';
my $json = load_json();
for my $pkg (@{$json->{packages}}) {
+ my @subpackages = ();
+ if ($pkg->{manpages}) {
+ push @subpackages, "$pkg->{name}-doc";
+ }
+ if ($pkg->{i18n}) {
+ push @subpackages, "$pkg->{name}-lang";
+ }
+
my $date = $pkg->{date} =~ s/-//gr;
my $ver = $pkg->{label} eq 'latest' ? "0.0.1_git$date" : $pkg->{version};
my $dir = "$d/$pkg->{name}" . (
@@ -524,7 +532,7 @@ sub emit_alpine() {
makedepends=''
checkdepends=''
install=''
- subpackages='$pkg->{name}-doc'
+ subpackages='@subpackages'
source='$pkg->{url}'
builddir="\$srcdir/$pkg->{name}-$pkg->{version}"