summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b52011c5dde8a5df6febd099aec5d5d69308bf5 (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
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=menuconfig-git
pkgver=r898.cb4733a
pkgrel=1
pkgdesc='Standalone version of the mconf tool from the linux kernel'
url='https://github.com/anatol/menuconfig'
arch=(i686 x86_64)
license=(GPL2)
depends=(ncurses)
makedepends=(git ninja)
source=(git://github.com/anatol/menuconfig.git)
sha1sums=('SKIP')

pkgver() {
  cd menuconfig
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd menuconfig
  sed -i "s/common_cflags =/common_cflags = $CFLAGS/" build.ninja
  sed -i "s/common_ldflags =/common_ldlags = $LDFLAGS/" build.ninja
}

build() {
  cd menuconfig
  ninja
}

package() {
  cd menuconfig
  install -m755 -d "$pkgdir/usr/bin"
  install -m755 -t "$pkgdir/usr/bin" conf mconf
}