blob: 026b2cc9e3c377383589ec38ab9c262d84b465c1 (
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
|
# Maintainer: SelfRef <arch@selfref.dev>
_pkgbase=android-xml-converter
pkgname="$_pkgbase"
pkgver=1
pkgrel=1
pkgdesc="Android Binary XML (ABX) conversion tools"
arch=('x86_64' 'i686' 'aarch64')
url="https://github.com/rhythmcache/android-xml-converter"
license=('Apache-2.0')
depends=('clang')
makedepends=('git')
provides=("$_pkgbase")
conflicts=("$_pkgbase")
source=("$_pkgbase::git+https://github.com/rhythmcache/android-xml-converter.git#tag=v$pkgver")
sha256sums=('a8a6caefdd3cdde1c5d88b434ccc8659ac8cbdf38c7875fb8bf96458fad16421')
build() {
cd "$_pkgbase"
rm -rf build
mkdir build
clang++ -Os -static -ffunction-sections -fdata-sections -fvisibility=hidden \
-flto -Wl,--gc-sections -o "build/abx2xml" "abx2xml.cpp"
clang++ -Os -static -ffunction-sections -fdata-sections -fvisibility=hidden \
-flto -Wl,--gc-sections -o "build/xml2abx" "xml2abx.cpp"
}
package() {
cd "$_pkgbase"
install -Dm755 "build/abx2xml" "$pkgdir/usr/bin/abx2xml"
install -Dm755 "build/xml2abx" "$pkgdir/usr/bin/xml2abx"
# install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgbase/LICENSE"
}
|