summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc68d925327badf0f10fd232cae02cf193ae4515 (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
50
# Maintainer: txtsd <aur.archlinux@ihavea.quest>

pkgname=bionic_translation-git
_pkgname=${pkgname%%-git}
pkgver=r68.e502e92
pkgrel=1
_commit="8b324301f4ba3f634b479d608eec2df2d1667757"
pkgdesc='A set of libraries for loading bionic-linked .so files on musl/glibc'
url='https://gitlab.com/android_translation_layer/bionic_translation'
arch=('x86_64' 'aarch64' 'armv7h')
license=('LicenseRef-Unknown')
depends=(
	'libbsd'
	'libunwind'
  'libglvnd'
  'glibc'
)
makedepends=(
  'git'
	'elfutils'
	'mesa'
	'meson'
)
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd ${_pkgname}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  meson subprojects download --sourcedir=${_pkgname}
}

build() {
  arch-meson ${_pkgname} build
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	meson install --no-rebuild -C build --destdir "${pkgdir}"
}