summaryrefslogtreecommitdiff
path: root/libre/lsb-release
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-19 19:11:04 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-19 19:11:04 -0300
commitbeed904d2232006ccb3a28d1a2445cbde4c69c43 (patch)
treec7ece55dbe67449c9c4b1552b2fd7decdcb92ab5 /libre/lsb-release
parent62abb4e795c864fa498c8e5d5f2ed30ac16a1e30 (diff)
downloadabslibre-beed904d2232006ccb3a28d1a2445cbde4c69c43.tar.gz
abslibre-beed904d2232006ccb3a28d1a2445cbde4c69c43.tar.bz2
abslibre-beed904d2232006ccb3a28d1a2445cbde4c69c43.zip
lsb-release-1.4-13: updating revision and remove -libre prefix name due that is only a rebranding
Diffstat (limited to 'libre/lsb-release')
-rw-r--r--libre/lsb-release/PKGBUILD40
-rw-r--r--libre/lsb-release/lsb-release.install14
2 files changed, 54 insertions, 0 deletions
diff --git a/libre/lsb-release/PKGBUILD b/libre/lsb-release/PKGBUILD
new file mode 100644
index 000000000..adf9c4774
--- /dev/null
+++ b/libre/lsb-release/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 79819 2012-11-13 13:12:30Z svenstaro $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Malte Rabenseifner <malte@zearan.de>
+# Contributor: John Gerritse <reaphsharc@gmail.com>
+# Maintainer (Parabola): Michał Masłowski <mtjm@mtjm.eu>
+# Contributor (Parabola): André Silva emulatorman@lavabit.com>
+
+pkgname=lsb-release
+pkgver=1.4
+pkgrel=13
+pkgdesc="LSB version query program (Parabola rebranded)"
+arch=('any')
+url="http://www.linuxbase.org/"
+license=('GPL2')
+depends=('bash')
+provides=('lsb-release-libre')
+conflicts=('lsb-release-libre')
+replaces=('lsb-release-libre')
+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 "LSB_VERSION=$pkgver" >> "$pkgdir/etc/lsb-release"
+ echo "DISTRIB_ID=parabola" > "$pkgdir/etc/lsb-release"
+ echo "DISTRIB_RELEASE=rolling" >> "$pkgdir/etc/lsb-release"
+ 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/lsb-release.install b/libre/lsb-release/lsb-release.install
new file mode 100644
index 000000000..62d404892
--- /dev/null
+++ b/libre/lsb-release/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
+}