Thanks for all the info!
I'll version it separately using a version number. I won't use a date
because I think that information can be found elsewhere (e.g. commit
dates). Plus a version number is useful for communicating backwards
compatibility.
I'll take Oscar's word for it and change the hashing algorithm to use b2sum.
I followed all of tippfehlr's advice.
I also added a LICENCE file since namcap was telling me that "Uncommon
license identifiers such as '0BSD' require license files". Given 0BSD is
in SPDX, I wasn't sure if this was actually necessary, but I added it
anyway. The contents of the LICENSE file is just taken from
https://rfc.archlinux.page/0040-license-package-sources/#license-text
So here's the updated PKGBUILD:
# Maintainer: zacoons <zac [at] zacoons [dot] com>
pkgname=blocky-openrc
pkgver=1.0
pkgrel=1
pkgdesc="An OpenRC init script for the fast and lightweight DNS proxy as
ad-blocker"
arch=("any")
url="https://github.com/0xERR0R/blocky"
license=("0BSD")
depends=(
"openrc"
"blocky"
)
source=(
"blocky.initd"
"LICENSE"
)
b2sums=(
"955d7909f1ca1d023ee8e0a9958ce98f41831e6d3b9ba18d55dcd7511b3fc5b6ff2883e02347ddfcd9ba11b6b0dcc622a3851b382d072afaaa907be17781ff86"
# blocky.initd
"a29664104e1ee73ca0aee1d633e9095d92a57c92787f8d8740bdb7211ba3205782ed8677f539bdb8cae3dd75a3694be3132e185fa3fc4b3f401e1f88eb776101"
# LICENSE
)
package() {
install -D -v -m755 blocky.initd "$pkgdir/etc/init.d/blocky"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}