wok-current annotate desktop-file-utils/receipt @ rev 24569
sokojs: add shrink.sh (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 26 18:46:53 2022 +0000 (2022-02-26) |
parents | 7e911016a644 |
children | bd8ebca6ea25 |
rev | line source |
---|---|
pankso@3150 | 1 # SliTaz package receipt. |
pankso@3150 | 2 |
pankso@3150 | 3 PACKAGE="desktop-file-utils" |
Hans-G?nter@24474 | 4 VERSION="0.26" |
al@19540 | 5 CATEGORY="system-tools" |
Hans-G?nter@22732 | 6 SHORT_DESC="Utilities for .desktop files (update-desktop-database)." |
pankso@3150 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19540 | 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/desktop-file-utils/" |
Hans-G?nter@22732 | 10 |
monghitri@13971 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19540 | 12 WGET_URL="https://www.freedesktop.org/software/desktop-file-utils/releases/$TARBALL" |
pankso@3150 | 13 |
Hans-G?nter@24474 | 14 DEPENDS="gcc83-lib-base glib glibc-base pcre" |
Hans-G?nter@24474 | 15 BUILD_DEPENDS="gcc83 glib-dev meson pkg-config" |
Hans-G?nter@22732 | 16 |
al@19540 | 17 SPLIT="desktop-file-utils-extra" |
pascal@15000 | 18 |
pascal@24069 | 19 current_version() |
pascal@24069 | 20 { |
pascal@24069 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24069 | 22 sed '/utils-/!d;s|.*utils-||;s|.tar.*||' | sed '$!d' |
pascal@24069 | 23 } |
pascal@24069 | 24 |
pankso@3150 | 25 # Rules to configure and make the package. |
pankso@3150 | 26 compile_rules() |
pankso@3150 | 27 { |
Hans-G?nter@24474 | 28 export CC=gcc-83 |
Hans-G?nter@24474 | 29 export CXX=g++-83 |
Hans-G?nter@24474 | 30 |
Hans-G?nter@24474 | 31 meson _build \ |
Hans-G?nter@24474 | 32 --prefix=/usr && |
Hans-G?nter@24474 | 33 ninja -C _build && |
Hans-G?nter@24474 | 34 ninja -C _build install |
pankso@3150 | 35 } |
pankso@3150 | 36 |
pankso@3150 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3150 | 38 genpkg_rules() |
pankso@3150 | 39 { |
al@19540 | 40 cook_copy_files update-desktop-database |
pankso@3150 | 41 } |