blob: 1c05eff78c211c22f5c977929d0ade4e531073d7 (
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
41
42
43
44
45
46
47
48
49
|
# Contributor: Robin Eklind <rnd0x00@gmail.com>
# Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com>
pkgname=intelxed-git
pkgver=2023.06.07.r0.g4dc7713
pkgrel=1
pkgdesc="Intel x86 encoder decoder"
arch=('x86_64')
url="https://intelxed.github.io"
license=('Apache')
depends=()
makedepends=('git' 'mbuild' 'doxygen')
provides=('intelxed')
conflicts=('intelxed' 'xed')
source=("$pkgname::git+https://github.com/intelxed/xed")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
if git describe --long --tags >/dev/null 2>&1; then
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
else
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
fi
}
build() {
cd "$srcdir/$pkgname"
./mfile.py --static install $MAKEFLAGS
./mfile.py --shared install $MAKEFLAGS
./mfile.py doc doc-build examples install $MAKEFLAGS
}
package() {
cd "$srcdir/$pkgname"/kits/xed-install-base-*-lin-x86-64
# install binaries, headers, and libraries
install -Dm 755 -t "$pkgdir/usr/bin" bin/*
install -dm 755 "$pkgdir/usr/include"
cp -r include/* "$pkgdir/usr/include/"
install -Dm 644 -t "$pkgdir/usr/lib" lib/*
# install docs and examples
install -dm 755 "$pkgdir/usr/share/doc"
cp -r doc/ref-manual/* "$pkgdir/usr/share/doc/"
install -Dm 644 -t "$pkgdir/usr/share/$pkgname/examples" examples/*
}
# vim: set sw=4 ts=4 et:
|