summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff753c8d5ac7eb5a499eeb328033c16eb5a87ba2 (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
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Andrew Boktor <andrew.boktor@gmail.com>

pkgname=makedepend
pkgver=1.0.5
pkgrel=2
pkgdesc="Create dependencies in Makefiles"
arch=('i686' 'x86_64')
url="http://www.linuxfromscratch.org/blfs/view/7.4/x/makedepend.html"
license=('custom')
depends=('splint')
makedepends=('autoconf' 'automake' 'm4' 'make' 'pkg-config' 'xorg-util-macros')
source=(http://xorg.freedesktop.org/archive/individual/util/makedepend-1.0.5.tar.gz)
sha256sums=('503903d41fb5badb73cb70d7b3740c8b30fe1cc68c504d3b6a85e6644c4e5004')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Building...'
  NOCONFIGURE=1 ./autogen.sh
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib/makedepend \
    --sysconfdir=/etc \
    --sharedstatedir=/usr/share/makedepend \
    --localstatedir=/var/lib/makedepend \
    --with-lint
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Installing license...'
  install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/makedepend"

  msg2 'Installing...'
  make DESTDIR="$pkgdir" install
}