mirror of
https://github.com/priyanshujain/margin-calendar.git
synced 2026-10-02 11:07:04 +00:00
No licence file meant nobody had permission to redistribute this, which is a
strange position for a public repo with an AUR package pointing at it. The
PKGBUILD said license=('custom') because there was nothing truthful to put
there.
MIT is not one of the licences Arch keeps in /usr/share/licenses/common, so
the package now fetches the licence from its own tag and installs a copy. The
release workflow checksums that copy from the tag it checked out, rather than
trusting whatever main has drifted to.
Declared in package.json and Cargo.toml too, so the manifests and the package
agree on the answer.
38 lines
1.9 KiB
Plaintext
38 lines
1.9 KiB
Plaintext
# Maintainer: PJ <[email protected]>
|
|
|
|
# The template the release workflow renders. @VERSION@ and @SHA256@ are filled in from the release
|
|
# that has just published, so the PKGBUILD on the AUR always points at an artifact that exists.
|
|
#
|
|
# A binary package rather than one built from source, and that is forced rather than lazy: the
|
|
# Google OAuth client is embedded at compile time from a file that is not in the repo, so anything
|
|
# built from source on a stranger's machine runs and then says Google Calendar is not set up.
|
|
|
|
pkgname=margin-calendar-bin
|
|
pkgver=@VERSION@
|
|
pkgrel=1
|
|
pkgdesc="A calendar for Google Calendar, where the grid owns the window and the day fits without scrolling"
|
|
arch=('x86_64')
|
|
url="https://github.com/priyanshujain/margin-calendar"
|
|
license=('MIT')
|
|
depends=('webkit2gtk-4.1' 'gtk3')
|
|
provides=('margin-calendar')
|
|
conflicts=('margin-calendar')
|
|
# Prebuilt and already linked: stripping it again buys nothing and risks the binary.
|
|
options=('!strip' '!debug')
|
|
source=("${pkgname}-${pkgver}.deb::${url}/releases/download/v${pkgver}/Margin.Calendar_${pkgver}_amd64.deb"
|
|
"LICENSE-${pkgver}::https://raw.githubusercontent.com/priyanshujain/margin-calendar/v${pkgver}/LICENSE")
|
|
noextract=("${pkgname}-${pkgver}.deb")
|
|
sha256sums=('@SHA256@'
|
|
'@LICENSE_SHA256@')
|
|
|
|
package() {
|
|
bsdtar -xOf "${pkgname}-${pkgver}.deb" data.tar.gz | bsdtar -xf - -C "${pkgdir}"
|
|
# The bundler names it after the product, spaces and all. Everything that reads this directory
|
|
# copes with that, and nothing that reads it enjoys it.
|
|
mv "${pkgdir}/usr/share/applications/Margin Calendar.desktop" \
|
|
"${pkgdir}/usr/share/applications/margin-calendar.desktop"
|
|
# MIT is not one of the licences Arch keeps in /usr/share/licenses/common, so every package
|
|
# under it has to carry its own copy.
|
|
install -Dm644 "LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|