blob: 7a2512db3345b7a0f1670858f72993022f74e2bb (
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=r2456.0687bef
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+https://github.com/anatol/menuconfig)
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
}
|