[arch-commits] Commit in lsb-release/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 17:37:03 UTC 2020
Date: Tuesday, July 7, 2020 @ 17:37:02
Author: felixonmars
Revision: 659804
archrelease: copy trunk to community-staging-any
Added:
lsb-release/repos/community-staging-any/
lsb-release/repos/community-staging-any/PKGBUILD
(from rev 659803, lsb-release/trunk/PKGBUILD)
lsb-release/repos/community-staging-any/lsb-release.install
(from rev 659803, lsb-release/trunk/lsb-release.install)
lsb-release/repos/community-staging-any/lsb_release_description.patch
(from rev 659803, lsb-release/trunk/lsb_release_description.patch)
-------------------------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
lsb-release.install | 12 ++++++++++++
lsb_release_description.patch | 11 +++++++++++
3 files changed, 61 insertions(+)
Copied: lsb-release/repos/community-staging-any/PKGBUILD (from rev 659803, lsb-release/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 17:37:02 UTC (rev 659804)
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Malte Rabenseifner <malte at zearan.de>
+# Contributor: John Gerritse <reaphsharc at gmail.com>
+
+pkgname=lsb-release
+pkgver=1.4
+pkgrel=16
+pkgdesc="LSB version query program"
+arch=('any')
+url="http://www.linuxbase.org/"
+license=('GPL2')
+depends=('bash')
+install=lsb-release.install
+source=(https://downloads.sourceforge.net/lsb/$pkgname-$pkgver.tar.gz
+ lsb_release_description.patch)
+sha512sums=('84f6f8794380463587005043f601b7a40190cd9e3409abff7f5ce7658cf029a14346eff87838296d90307192bdeff68cc00480c5c04814da7acdb3e220640fde'
+ '145ef64f90f5e6cc59075679e640cf7c1ad02617c12eff17f10b05c1cc219591fdba1b27be2b2c8480742aed24ce81d6a7badcbaca6772faea4ebc6a55695b62')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -Np0 < "$srcdir/lsb_release_description.patch"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ install -dm755 "$pkgdir/etc"
+ echo "LSB_VERSION=$pkgver" >> "$pkgdir/etc/lsb-release"
+ echo "DISTRIB_ID=Arch" >> "$pkgdir/etc/lsb-release"
+ echo "DISTRIB_RELEASE=rolling" >> "$pkgdir/etc/lsb-release"
+ echo "DISTRIB_DESCRIPTION=\"Arch Linux\"" >> "$pkgdir/etc/lsb-release"
+
+ install -Dm 644 lsb_release.1.gz "$pkgdir/usr/share/man/man1/lsb_release.1.gz"
+ install -Dm 755 lsb_release "$pkgdir/usr/bin/lsb_release"
+}
Copied: lsb-release/repos/community-staging-any/lsb-release.install (from rev 659803, lsb-release/trunk/lsb-release.install)
===================================================================
--- community-staging-any/lsb-release.install (rev 0)
+++ community-staging-any/lsb-release.install 2020-07-07 17:37:02 UTC (rev 659804)
@@ -0,0 +1,12 @@
+post_install() {
+ echo "Arch Linux release" >> /etc/arch-release
+}
+
+post_upgrade() {
+ sed -e "/Arch Linux release/d" -i /etc/arch-release
+ echo "Arch Linux release" >> /etc/arch-release
+}
+
+pre_remove() {
+ sed -e "/Arch Linux release/d" -i /etc/arch-release
+}
Copied: lsb-release/repos/community-staging-any/lsb_release_description.patch (from rev 659803, lsb-release/trunk/lsb_release_description.patch)
===================================================================
--- community-staging-any/lsb_release_description.patch (rev 0)
+++ community-staging-any/lsb_release_description.patch 2020-07-07 17:37:02 UTC (rev 659804)
@@ -0,0 +1,11 @@
+--- lsb_release.orig 2012-11-13 05:12:02.000000000 -0800
++++ lsb_release 2013-11-24 17:13:55.943608718 -0800
+@@ -216,7 +216,7 @@
+ TMP_DISTRIB_DESC=$DISTRIB_DESCRIPTION
+ fi
+
+- if [ -z "$TMP_DISTRIB_DESC" ] # head or lsb-release init
++ if [ -z "$DISTRIB_DESCRIPTION" ] # head or lsb-release init
+ then # file contains no data
+ DISTRIB_DESCRIPTION=$MSG_NONE
+ NO="y"
More information about the arch-commits
mailing list