summaryrefslogtreecommitdiff
path: root/community/makedev/PKGBUILD
blob: d6cf65b9913d489eab425f75b26791c3c9a144ff (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
# $Id$
# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
# Contributor: Jonathan Liu <net147@gmail.com>
# Contributor: Judd Vinet <jvinet@zeroflux.org>

pkgname=makedev
pkgver=3.23_1
pkgrel=1.1
pkgdesc='The ubiquitous script to create static device nodes'
arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url='http://people.redhat.com/nalin/MAKEDEV/'
source=("http://people.redhat.com/nalin/MAKEDEV/MAKEDEV-${pkgver//_/-}.tar.gz")
md5sums=('554faf6cbc9a84e4bd58ccfa32d74e2f')

build() {
  cd ${pkgname^^*}-${pkgver/_*}
  sed -ri 's/^OPTFLAGS.*/& '"$CFLAGS"'/' Makefile
  make
}

package() {
  cd ${pkgname^^*}-${pkgver/_*}
  make DESTDIR="${pkgdir}" devdir=/usr/sbin makedevdir=/usr/sbin install
}

# vim:set ts=2 sw=2 ft=sh et: