mirror of
https://github.com/priyanshujain/margin-calendar.git
synced 2026-10-02 11:07:04 +00:00
License under MIT
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.
This commit is contained in:
1 parent
fef1ad7ff5
commit
3323496a34
5 files changed
+41
-5
No files matched your search
@@ -188,7 +188,10 @@ jobs:
|
|||||||
needs: [prepare, publish]
|
needs: [prepare, publish]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
# The tag, not main, so the template and the licence are the ones this release shipped.
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.prepare.outputs.tag }}
|
||||||
|
|
||||||
- name: Render the PKGBUILD for this release
|
- name: Render the PKGBUILD for this release
|
||||||
env:
|
env:
|
||||||
@@ -199,8 +202,13 @@ jobs:
|
|||||||
# From the published asset, so the checksum is of the artifact users will actually fetch.
|
# From the published asset, so the checksum is of the artifact users will actually fetch.
|
||||||
curl -fsSL --retry 3 -o package.deb "$URL"
|
curl -fsSL --retry 3 -o package.deb "$URL"
|
||||||
SHA=$(sha256sum package.deb | cut -d' ' -f1)
|
SHA=$(sha256sum package.deb | cut -d' ' -f1)
|
||||||
sed -e "s/@VERSION@/$VERSION/g" -e "s/@SHA256@/$SHA/g" packaging/aur/PKGBUILD.in > PKGBUILD
|
# The PKGBUILD fetches the licence from the tag, so checksum the copy at that same tag.
|
||||||
echo "pkgver $VERSION, sha256 $SHA"
|
LICENSE_SHA=$(sha256sum LICENSE | cut -d' ' -f1)
|
||||||
|
sed -e "s/@VERSION@/$VERSION/g" \
|
||||||
|
-e "s/@SHA256@/$SHA/g" \
|
||||||
|
-e "s/@LICENSE_SHA256@/$LICENSE_SHA/g" \
|
||||||
|
packaging/aur/PKGBUILD.in > PKGBUILD
|
||||||
|
echo "pkgver $VERSION, deb $SHA, licence $LICENSE_SHA"
|
||||||
|
|
||||||
- name: Generate .SRCINFO
|
- name: Generate .SRCINFO
|
||||||
# makepkg is Arch-only and refuses to run as root, hence the container and the throwaway
|
# makepkg is Arch-only and refuses to run as root, hence the container and the throwaway
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Priyanshu Jain
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
"name": "margin-calendar",
|
"name": "margin-calendar",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -13,15 +13,17 @@ pkgrel=1
|
|||||||
pkgdesc="A calendar for Google Calendar, where the grid owns the window and the day fits without scrolling"
|
pkgdesc="A calendar for Google Calendar, where the grid owns the window and the day fits without scrolling"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/priyanshujain/margin-calendar"
|
url="https://github.com/priyanshujain/margin-calendar"
|
||||||
license=('custom')
|
license=('MIT')
|
||||||
depends=('webkit2gtk-4.1' 'gtk3')
|
depends=('webkit2gtk-4.1' 'gtk3')
|
||||||
provides=('margin-calendar')
|
provides=('margin-calendar')
|
||||||
conflicts=('margin-calendar')
|
conflicts=('margin-calendar')
|
||||||
# Prebuilt and already linked: stripping it again buys nothing and risks the binary.
|
# Prebuilt and already linked: stripping it again buys nothing and risks the binary.
|
||||||
options=('!strip' '!debug')
|
options=('!strip' '!debug')
|
||||||
source=("${pkgname}-${pkgver}.deb::${url}/releases/download/v${pkgver}/Margin.Calendar_${pkgver}_amd64.deb")
|
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")
|
noextract=("${pkgname}-${pkgver}.deb")
|
||||||
sha256sums=('@SHA256@')
|
sha256sums=('@SHA256@'
|
||||||
|
'@LICENSE_SHA256@')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
bsdtar -xOf "${pkgname}-${pkgver}.deb" data.tar.gz | bsdtar -xf - -C "${pkgdir}"
|
bsdtar -xOf "${pkgname}-${pkgver}.deb" data.tar.gz | bsdtar -xf - -C "${pkgdir}"
|
||||||
@@ -29,4 +31,7 @@ package() {
|
|||||||
# copes with that, and nothing that reads it enjoys it.
|
# copes with that, and nothing that reads it enjoys it.
|
||||||
mv "${pkgdir}/usr/share/applications/Margin Calendar.desktop" \
|
mv "${pkgdir}/usr/share/applications/Margin Calendar.desktop" \
|
||||||
"${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"
|
||||||
}
|
}
|
||||||
@@ -4,6 +4,7 @@ version = "0.0.1"
|
|||||||
description = "A calendar for Google Calendar"
|
description = "A calendar for Google Calendar"
|
||||||
authors = ["Margin"]
|
authors = ["Margin"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "margin_calendar_lib"
|
name = "margin_calendar_lib"
|
||||||
|
|||||||
Reference in new issue
Block a user