diff options
author | Einhard Leichtfuß | 2021-06-30 03:49:16 +0200 |
---|---|---|
committer | Einhard Leichtfuß | 2021-06-30 03:49:16 +0200 |
commit | 4f9db17a6e67e5bd43bea04910d9347373d380fd (patch) | |
tree | 54d593dc18ea5a270aa37c357de4bd2742fb45ea /PKGBUILD | |
parent | 6d31b2fe82abfeaba1fd1b6493a1cde2a092312a (diff) | |
download | aur-dict-devils.tar.gz |
Reproducible build
Build dates are no logner stored, making the package reproducible--apart
from the makepkg-generated metadata, which particularly include the
build time.
This was motivated by the corresponding change in the Debian package--
which is upstream for the conversion script.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 23 insertions, 10 deletions
@@ -1,26 +1,30 @@ -# Maintainer: Einhard Leichtfuß <archer@respiranto.de> +# Maintainer: Einhard Leichtfuß <alguien@respiranto.de> pkgname=dict-devils pkgver=1 _deb_srcver=1.0 -_debver=${_deb_srcver}-12 -pkgrel=1 +_debver=${_deb_srcver}-13.1 +pkgrel=2 pkgdesc="The Devil's Dictionary by Ambrose Bierce for dictd et al." arch=('any') -url="http://wiretap.area.com/" +url="https://packages.debian.org/sid/dict-devil" license=('custom: Public Domain') optdepends=('dictd: dict client and server') makedepends=('dictd') conflicts=('dictd-devils') install=${pkgname}.install -source=("http://http.debian.net/debian/pool/main/d/dict-devil/dict-devil_${_deb_srcver}.orig.tar.gz" - "http://http.debian.net/debian/pool/main/d/dict-devil/dict-devil_${_debver}.debian.tar.gz") +# Alternative archive of original source: +# - https://web.archive.org/web/20170402162112id_/http://wiretap.area.com/Gopher/Library/Classic/devils.txt +# - The "orig" tarball below contains nothing but this file (in a directory). +source=("https://deb.debian.org/debian/pool/main/d/dict-devil/dict-devil_${_deb_srcver}.orig.tar.gz" + "https://deb.debian.org/debian/pool/main/d/dict-devil/dict-devil_${_debver}.debian.tar.xz") sha512sums=('7dad3ab008ba976a0af58377bd206f2870617866b854b8a2cf588f6eefcaaab4a261e9f511b094410c9e454b7ee94b83ec1351774728b171f0e6cdbefa903fd1' - '7156a48738dcae73c33f36924cc77523c36b0e2fc066793e96d94bd6efca1aaa9c77a62ba988feedaef8488c4269fc785d58b2f17dc5758cfec3bf3f4b1736db') + '0f8c59bf145a0c737e14e156e949382aae79c42eab6ac8721a5d4a282a79ec0de35841a53487b58b3c86e4f153a0366de67f39df6bea1c6217734013b04ebb5e') + prepare() { - cd dict-devil-${_deb_srcver} + cd "dict-devil-${_deb_srcver}" # Extract licensing statement. grep -m1 -B1 'Public Domain' devils.txt > LICENSE @@ -29,16 +33,25 @@ prepare() patch -p1 devils.txt ../debian/patches/debian-changes } + +# Note: Building is reproducible. +# - devil2dict calls dictfmt with the `--without-time' flag. +# - dictzip's input is touched to be from epoch. +# - The Debian package instead uses the `--no-name' flag, which is custom to +# Debian's dictzip. build() { - cd dict-devil-${_deb_srcver} + cd "dict-devil-${_deb_srcver}" ../debian/devil2dict devils.txt devils + + touch --date='@0' devils.dict dictzip devils.dict } + package() { - cd dict-devil-${_deb_srcver} + cd "dict-devil-${_deb_srcver}" install -m 0755 -d "${pkgdir}/usr/share/dictd" install -m 0644 -t "${pkgdir}/usr/share/dictd/" devils.{dict.dz,index} |