summaryrefslogtreecommitdiff
path: root/libre/lsb-release/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/lsb-release/PKGBUILD')
-rw-r--r--libre/lsb-release/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/libre/lsb-release/PKGBUILD b/libre/lsb-release/PKGBUILD
new file mode 100644
index 000000000..71fb184eb
--- /dev/null
+++ b/libre/lsb-release/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 101477 2013-11-26 10:23:04Z svenstaro $
+# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor (Arch): Malte Rabenseifner <malte@zearan.de>
+# Contributor (Arch): John Gerritse <reaphsharc@gmail.com>
+# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
+# Contributor: André Silva emulatorman@parabola.nu>
+
+pkgname=lsb-release
+pkgver=1.4
+pkgrel=14.parabola1
+pkgdesc="LSB version query program (Parabola rebranded)"
+arch=('any')
+url="http://www.linuxbase.org/"
+license=('GPL2')
+depends=('bash')
+replaces=("${pkgname}-libre" "${pkgname}-parabola")
+conflicts=("${pkgname}-libre" "${pkgname}-parabola")
+install=lsb-release.install
+source=(http://downloads.sourceforge.net/lsb/$pkgname-$pkgver.tar.gz
+ lsb_release_description.patch)
+md5sums=('30537ef5a01e0ca94b7b8eb6a36bb1e4'
+ '72f562d8eaa8915ab85fba13e68c8d68')
+
+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=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"
+}