blob: 87c4e5261e0444473162e4ef1286410ed0b7d93b (
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
|
# Maintainer: Cebtenzzre <cebtenzzre (at) gmail (dot) com>
_pkgname=fcode-utils
pkgname="${_pkgname}-git"
pkgver=v1.0.2.r20.gd89219a
pkgrel=1
pkgdesc="A set of utilities to process FCODE, OpenFirmware's byte code"
arch=(x86_64 i686)
url='https://www.openfirmware.info/FCODE_suite'
license=(GPL2 CPL)
depends=('glibc')
makedepends=('git')
source=("git+https://github.com/openbios/${_pkgname}.git"
'nicer_flags.patch')
sha256sums=('SKIP'
'eba18cb2f7ecc20a4018a9e79f79d0845b42adba3320240933bd881f3901034e')
provides=('romheaders')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
# Fix the not-so-nice flag replacement and ignoring
patch -p1 -i ../nicer_flags.patch
}
build() {
cd "$_pkgname"
make
}
package() {
cd "$_pkgname"
make install DESTDIR="$pkgdir/usr"
}
|