diff options
author | Vladimir Panteleev | 2023-01-02 23:45:13 +0000 |
---|---|---|
committer | Vladimir Panteleev | 2023-01-02 23:45:13 +0000 |
commit | cd383ac5abc14a78ed3bfb1264d16ac5aaf2d8b7 (patch) | |
tree | 2bff94a8279f31bed6d5125f3df12dc63445f5e6 | |
parent | c46d858dc36cbbfe7192e9f73852dc92a26a2485 (diff) | |
download | aur-cd383ac5abc14a78ed3bfb1264d16ac5aaf2d8b7.tar.gz |
PKGBUILD: Add some rationale/commentary about the PKGBUILD
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -1,5 +1,27 @@ # Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net> +# Note: this PKGBUILD is a little more complicated than it could be, +# because we try to be strictly pedantic about separating the download +# phase from the build phase to conform to PKGBUILD ideals. +# +# Namely, all PKGBUILDs should ideally be written such that: +# +# - The download phase is done by the package build tool +# (i.e. everything and anything that needs to be obtained from the +# Internet is listed in the source array). +# +# - The download phase does not run any external code. +# +# - The build phase does not access the Internet. +# +# Satisfying these constraints allows users to configure the download +# mechanisms to e.g. use proxies and provides security and +# reproducibility guarantees. +# +# If you are packaging btdu and don't care about the above, you can +# skip all the "dub add-local ..." commands and simply run "dub build +# -b release", as documented in btdu's README. + pkgname=btdu pkgver=0.5.0 pkgrel=1 @@ -10,7 +32,7 @@ license=('GPL2') depends=('ncurses' 'd-runtime') makedepends=('d-compiler' 'dub' 'dtools') -# these should match dub.selections.json +# These should match dub.selections.json from the btdu repository: _d_ae_ver=0.0.3228 _d_btrfs_ver=0.0.13 _d_ncurses_ver=0.0.149 |