summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-11-28 18:38:05 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2011-11-28 18:38:05 +0100
commit200243aa19586c8aefd03ffc370d085031d3a024 (patch)
treef385c2789f401d9d588c50ff9db35cecdf72e1d8 /libre
parent07bbe9c29c96e445f19790619a261e6e61c523e0 (diff)
downloadabslibre-200243aa19586c8aefd03ffc370d085031d3a024.tar.gz
abslibre-200243aa19586c8aefd03ffc370d085031d3a024.tar.bz2
abslibre-200243aa19586c8aefd03ffc370d085031d3a024.zip
lsb-release with Parabola branding.
Diffstat (limited to 'libre')
-rw-r--r--libre/lsb-release-libre/PKGBUILD34
-rw-r--r--libre/lsb-release-libre/lsb-release.install12
2 files changed, 46 insertions, 0 deletions
diff --git a/libre/lsb-release-libre/PKGBUILD b/libre/lsb-release-libre/PKGBUILD
new file mode 100644
index 000000000..5eb411a97
--- /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
+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..6ce4fee54
--- /dev/null
+++ b/libre/lsb-release-libre/lsb-release.install
@@ -0,0 +1,12 @@
+post_install() {
+ echo "Parabola GNU/Linux-Libre release" >> /etc/arch-release
+}
+
+post_upgrade() {
+ sed -e '/Parabola GNU\/Linux-Libre release/d' -i /etc/arch-release
+ echo "Parabola GNU/Linux-Libre release" >> /etc/arch-release
+}
+
+pre_remove() {
+ sed -e '/Parabola GNU\/Linux-Libre release/d' -i /etc/arch-release
+}