From 9a5f87b25ad515575f6b926a82795a93a561ca97 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 2 Jun 2021 17:36:25 +0200 Subject: [PATCH] swaybg: convert to git --- .../swaybg/{swaybg_1.0.bb => swaybg_git.bb} | 8 +++--- .../waybar/font-awesome-otf_git.bb | 28 +++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) rename recipes-support/swaybg/{swaybg_1.0.bb => swaybg_git.bb} (75%) create mode 100644 recipes-support/waybar/font-awesome-otf_git.bb diff --git a/recipes-support/swaybg/swaybg_1.0.bb b/recipes-support/swaybg/swaybg_git.bb similarity index 75% rename from recipes-support/swaybg/swaybg_1.0.bb rename to recipes-support/swaybg/swaybg_git.bb index 2e9ad70..3cb97cf 100644 --- a/recipes-support/swaybg/swaybg_1.0.bb +++ b/recipes-support/swaybg/swaybg_git.bb @@ -17,12 +17,12 @@ DEPENDS = " \ " SRC_URI = " \ - https://github.com/swaywm/swaybg/archive/refs/tags/${PV}.tar.gz \ + git://github.com/swaywm/swaybg.git;protocol=https \ " -SRC_URI[sha256sum] = "a23f1cde07138b865630172eff83db916d2f0989b75fb318def85dcfc3120fbd" - -S = "${WORKDIR}/${PN}-${PV}" +S = "${WORKDIR}/git" +PV = "1.0" +SRCREV = "${PV}" inherit meson pkgconfig features_check diff --git a/recipes-support/waybar/font-awesome-otf_git.bb b/recipes-support/waybar/font-awesome-otf_git.bb new file mode 100644 index 0000000..1cbbec0 --- /dev/null +++ b/recipes-support/waybar/font-awesome-otf_git.bb @@ -0,0 +1,28 @@ +SUMMARY = "Font Awesome" + +HOMEPAGE = "https://fontawesome.com/" +SECTION = "base/fonts" + +LICENSE = "OFL-1.1" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2e3494502db283e8891d4886fe445912" + +SRC_URI = " \ + git://github.com/FortAwesome/Font-Awesome.git;protocol=https \ +" + +S = "${WORKDIR}/git" +PV = "5.15.3" +SRCREV = "${PV}" + + +do_install () { + install -d ${D}${datadir}/fonts/opentype + for font in ${S}/otfs/*.otf; do + install -m 0644 "$font" ${D}${datadir}/fonts/opentype + done +} + +FILES_${PN} = " \ + ${datadir}/fonts \ +" +