blob: c992c1d896405d9208aa5a1c600f5b4b22271701 (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=libinsn-git
_pkg="${pkgname%-git}"
pkgver=30.r6.ge795956
pkgrel=1
pkgdesc='Instruction decoder/encoder for 64bit ARM'
arch=(x86_64)
url='https://github.com/tihmstar/libinsn'
license=(LGPL2.1)
depends=(libgeneral gcc-libs)
makedepends=(clang git)
provides=("$_pkg.so" "$_pkg")
conflicts=("$_pkg")
source=("$_pkg::git+$url")
sha256sums=(SKIP)
pkgver() {
git -C "$_pkg" describe --long --tags | sed 's/-/.r/;s/-/./'
}
build() {
## Will not compile with gcc
cd "$_pkg"
export CC=clang
export CXX=clang++
./autogen.sh --prefix=/usr
make
}
package() {
cd "$_pkg"
make DESTDIR="$pkgdir/" install
}
|