summaryrefslogtreecommitdiffstats
path: root/lsb-release/PKGBUILD
blob: f754db2ad05f3c184231177ffbf60ae4619424a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Contributor: John Gerritse <reaphsharc@gmail.com>
pkgname=lsb-release
pkgver=1.4
pkgrel=7
pkgdesc="LSB version query program."
arch=(i686 x86_64)
url="http://www.linuxbase.org/"
license=('GPL2')
groups=
provides=
depends=('bash')
makedepends=('perl')
source=(http://downloads.sourceforge.net/lsb/$pkgname-$pkgver.tar.gz)
md5sums=('30537ef5a01e0ca94b7b8eb6a36bb1e4')

build() {
  cd "$startdir/src/$pkgname-$pkgver"
  mkdir $startdir/pkg/etc/
  echo DISTRIB_ID="arch" > "$startdir/pkg/etc/lsb-release"
  make || return 1
  #  make DESTDIR="$startdir/pkg" install - doesn't work, doeing it manually
  install -D -m 644 lsb_release.1.gz $startdir/pkg/usr/share/man/man1/lsb_release.1.gz
  install -D -m 755 lsb_release $startdir/pkg/usr/bin/lsb_release
}