From 4cf6f4b885ef6966fb4ba10f4eca204bf20ef476 Mon Sep 17 00:00:00 2001 From: Daniele Date: Sun, 15 Jan 2012 03:02:03 +0000 Subject: [PATCH] Backporting lsb-release from testing. --- lsb-release/PKGBUILD | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/lsb-release/PKGBUILD b/lsb-release/PKGBUILD index 8b8966018..6b69f6e88 100644 --- a/lsb-release/PKGBUILD +++ b/lsb-release/PKGBUILD @@ -9,27 +9,32 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=lsb-release pkgver=1.4 -pkgrel=2 -pkgdesc="LSB version query program" +pkgrel=4 +pkgdesc="LSB version query program." arch=('i686' 'x86_64') url="http://www.linuxbase.org/" +makedepends=('perl') # to generate the man page license=('GPL2') -source=(http://downloads.sourceforge.net/lsb/$pkgname-$pkgver.tar.gz) +source=("http://downloads.sourceforge.net/lsb/${pkgname}-${pkgver}.tar.gz") md5sums=('30537ef5a01e0ca94b7b8eb6a36bb1e4') build() { - cd "$srcdir/$pkgname-$pkgver" + cd "${srcdir}/${pkgname}-${pkgver}" make } package() { - cd "$srcdir/$pkgname-$pkgver" - install -dm755 "$pkgdir/etc" - echo "DISTRIB_ID=\"Chakra\"" > "$pkgdir/etc/lsb-release" - echo "DISTRIB_RELEASE=\"2011.04\"" >> "$pkgdir/etc/lsb-release" - echo "DISTRIB_CODENAME=\"Aida\"" >> "$pkgdir/etc/lsb-release" - echo "DISTRIB_DESCRIPTION=\"Chakra Linux\"" >> "$pkgdir/etc/lsb-release" + cd "${srcdir}/${pkgname}-${pkgver}" + make prefix="${pkgdir}/usr" mandir="${pkgdir}/usr/share/man" install - 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" + # Create an /etc/lsb-release file suitable for Chakra + install -d -m755 "${pkgdir}/etc" + cat > "${pkgdir}/etc/lsb-release" <<-EOF +DISTRIB_ID="Chakra" +DISTRIB_RELEASE="2011.12" +DISTRIB_CODENAME="Edn" +DISTRIB_DESCRIPTION="Chakra Linux" +EOF } + +# vim:set ts=2 sw=2 et: