diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-02 00:57:42 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-12-02 00:57:42 -0300 |
commit | cee2a272eafa29717bd86a2f488e425578df69a8 (patch) | |
tree | c009dfa8495ecf594095bffd9dc48699b47b2a05 /libre/lsb-release-libre | |
parent | 1cad3c40726e28689d67ff32de394a692b232a13 (diff) | |
parent | a844d8c53a6e12e8d8266f6c5a758edd0a7358c0 (diff) | |
download | abslibre-cee2a272eafa29717bd86a2f488e425578df69a8.tar.gz abslibre-cee2a272eafa29717bd86a2f488e425578df69a8.tar.bz2 abslibre-cee2a272eafa29717bd86a2f488e425578df69a8.zip |
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to 'libre/lsb-release-libre')
-rw-r--r-- | libre/lsb-release-libre/PKGBUILD | 34 | ||||
-rw-r--r-- | libre/lsb-release-libre/lsb-release.install | 14 |
2 files changed, 48 insertions, 0 deletions
diff --git a/libre/lsb-release-libre/PKGBUILD b/libre/lsb-release-libre/PKGBUILD new file mode 100644 index 000000000..06521d21d --- /dev/null +++ b/libre/lsb-release-libre/PKGBUILD @@ -0,0 +1,34 @@ +# Parabola maintainer: Michał Masłowski <mtjm@mtjm.eu> +# $Id: PKGBUILD 22635 2010-07-25 20:05:28Z svenstaro $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Malte Rabenseifner <malte@zearan.de> +# Contributor: John Gerritse <reaphsharc@gmail.com> + +_pkgname=lsb-release +pkgname=lsb-release-libre +pkgver=1.4 +pkgrel=10.1 +pkgdesc="LSB version query program with Parabola name" +arch=('any') +url="http://www.linuxbase.org/" +license=('GPL2') +provides=('lsb-release') +conflicts=('lsb-release') +replaces=('lsb-release') +install=lsb-release.install +source=(http://downloads.sourceforge.net/lsb/$_pkgname-$pkgver.tar.gz) +md5sums=('30537ef5a01e0ca94b7b8eb6a36bb1e4') + +build() { + cd "$srcdir/$_pkgname-$pkgver" + make +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + install -dm755 "$pkgdir/etc" + echo "DISTRIB_DESCRIPTION=\"Parabola GNU/Linux-libre\"" > "$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" +} diff --git a/libre/lsb-release-libre/lsb-release.install b/libre/lsb-release-libre/lsb-release.install new file mode 100644 index 000000000..62d404892 --- /dev/null +++ b/libre/lsb-release-libre/lsb-release.install @@ -0,0 +1,14 @@ +post_install() { + rm -f /etc/arch-release + echo "Parabola GNU/Linux-libre release" >> /etc/parabola-release +} + +post_upgrade() { + rm -f /etc/arch-release + sed -e '/Parabola GNU\/Linux-[Ll]ibre release/d' -i /etc/parabola-release + echo "Parabola GNU/Linux-libre release" >> /etc/parabola-release +} + +pre_remove() { + sed -e '/Parabola GNU\/Linux-[Ll]ibre release/d' -i /etc/parabola-release +} |