diff options
author | kyechou | 2020-11-05 16:27:09 -0600 |
---|---|---|
committer | kyechou | 2020-11-05 16:27:09 -0600 |
commit | fc8323b678ef0ca2ae92d9daf814ff81a765e0c7 (patch) | |
tree | f5c6fb0f76e3c20db3cd9b0bbae768b982ad8c4c | |
parent | d16dca363b73839fde0d561b91cdac1b7b8bb25f (diff) | |
download | aur-fc8323b678ef0ca2ae92d9daf814ff81a765e0c7.tar.gz |
Update to 11.2.0-
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 41 insertions, 25 deletions
@@ -1,15 +1,16 @@ pkgbase = intelxed-git - pkgdesc = Software library for encoding and decoding X86 instructions. - pkgver = 20190821 + pkgdesc = x86 encoder decoder + pkgver = 11.2.0.r187.g7573e4b pkgrel = 1 - url = https://github.com/intelxed/xed + url = https://intelxed.github.io arch = x86_64 - arch = i686 - license = Apache2 + license = Apache makedepends = git - depends = python + makedepends = mbuild + makedepends = doxygen + provides = intelxed conflicts = intelxed - source = git+https://github.com/intelxed/xed.git + source = intelxed-git::git+https://github.com/intelxed/xed.git md5sums = SKIP pkgname = intelxed-git @@ -1,31 +1,46 @@ +# Contributor: Robin Eklind <rnd0x00@gmail.com> +# Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com> + pkgname=intelxed-git -_pkgname=xed -pkgver=20190821 +pkgver=11.2.0.r187.g7573e4b pkgrel=1 -pkgdesc="Software library for encoding and decoding X86 instructions." -url="https://github.com/intelxed/xed" -arch=('x86_64' 'i686') -license=('Apache2') -depends=('python') -makedepends=('git') +pkgdesc="x86 encoder decoder" +arch=('x86_64') +url="https://intelxed.github.io" +license=('Apache') +depends=() +makedepends=('git' 'mbuild' 'doxygen') +provides=('intelxed') conflicts=('intelxed') -source=("git+https://github.com/intelxed/xed.git") +source=("$pkgname"::'git+https://github.com/intelxed/xed.git') md5sums=('SKIP') pkgver() { - cd ${srcdir}/${_pkgname} - git log -1 --format="%cd" --date="format:%Y%m%d" + cd "$srcdir/$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - git clone https://github.com/intelxed/mbuild ${srcdir}/mbuild - cd ${srcdir}/${_pkgname} - ./mfile.py install --shared + cd "${srcdir}/${pkgname}" + ./mfile.py doc examples install --shared ${MAKEFLAGS} } package() { - cd $srcdir/${_pkgname}/kits/xed-install-base-*-lin-x86-64 - mkdir -p "$pkgdir/usr" - cp -r include "$pkgdir/usr/" - cp -r lib "$pkgdir/usr/" + cd "${srcdir}/${pkgname}"/kits/xed-install-base-*-lin-x86-64 + + # remove unneeded files + rm -rf extlib/ mbuild/ misc/ + + # 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 doc and examples + install -dm 755 "${pkgdir}/usr/share/"{doc,$pkgname} + cp -r doc/ref-manual "${pkgdir}/usr/share/doc/$pkgname" + cp -r examples "${pkgdir}/usr/share/$pkgname/examples" } + +# vim: set sw=4 ts=4 et: |