diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 07:04:44 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 07:04:44 -0300 |
commit | 224ff53c78c2e8df8c6ac3f5b84964a9fd228ee3 (patch) | |
tree | 21f0f00d6ca7a856bde8310b4558a527717a6d85 /libre/lsb-release-parabola | |
parent | 317a3b1d822c252c9f341170cf47a85d72cddde6 (diff) | |
download | abslibre-224ff53c78c2e8df8c6ac3f5b84964a9fd228ee3.tar.gz abslibre-224ff53c78c2e8df8c6ac3f5b84964a9fd228ee3.tar.bz2 abslibre-224ff53c78c2e8df8c6ac3f5b84964a9fd228ee3.zip |
add parabola suffix on some packages
Diffstat (limited to 'libre/lsb-release-parabola')
-rw-r--r-- | libre/lsb-release-parabola/PKGBUILD | 45 | ||||
-rw-r--r-- | libre/lsb-release-parabola/lsb-release.install | 12 | ||||
-rw-r--r-- | libre/lsb-release-parabola/lsb_release_description.patch | 11 |
3 files changed, 68 insertions, 0 deletions
diff --git a/libre/lsb-release-parabola/PKGBUILD b/libre/lsb-release-parabola/PKGBUILD new file mode 100644 index 000000000..d0b083df5 --- /dev/null +++ b/libre/lsb-release-parabola/PKGBUILD @@ -0,0 +1,45 @@ +# $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 +pkgname=lsb-release-parabola +pkgver=1.4 +pkgrel=14 +pkgdesc="LSB version query program (Parabola rebranded)" +arch=('any') +url="http://www.linuxbase.org/" +license=('GPL2') +depends=('bash') +replaces=("${_pkgname}" "${_pkgname}-libre") +conflicts=("${_pkgname}" "${_pkgname}-libre") +provides=(${_pkgname}=${pkgver}) +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" +} diff --git a/libre/lsb-release-parabola/lsb-release.install b/libre/lsb-release-parabola/lsb-release.install new file mode 100644 index 000000000..261df2a73 --- /dev/null +++ b/libre/lsb-release-parabola/lsb-release.install @@ -0,0 +1,12 @@ +post_install() { + echo "Parabola GNU/Linux-libre release" >> /etc/parabola-release +} + +post_upgrade() { + 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 +} diff --git a/libre/lsb-release-parabola/lsb_release_description.patch b/libre/lsb-release-parabola/lsb_release_description.patch new file mode 100644 index 000000000..d46835b97 --- /dev/null +++ b/libre/lsb-release-parabola/lsb_release_description.patch @@ -0,0 +1,11 @@ +--- lsb_release.orig 2012-11-13 05:12:02.000000000 -0800 ++++ lsb_release 2013-11-24 17:13:55.943608718 -0800 +@@ -216,7 +216,7 @@ + TMP_DISTRIB_DESC=$DISTRIB_DESCRIPTION + fi + +- if [ -z "$TMP_DISTRIB_DESC" ] # head or lsb-release init ++ if [ -z "$DISTRIB_DESCRIPTION" ] # head or lsb-release init + then # file contains no data + DISTRIB_DESCRIPTION=$MSG_NONE + NO="y" |