blob: e66d95e90fea81287335c58ded0181c7859d6797 (
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: EatMyVenom <eat.my.venomm@gmail.com>
# Contributor: Kevin MacMartin <prurigro@gmail.com>
_pkgname=chromeos-apk
pkgname="${_pkgname}-git"
pkgver=20201218.r129.f13a94d
pkgrel=1
pkgdesc='Extract Android APKs for running in Chrome OS OR Chrome in OS X, Linux and Windows'
arch=('any')
url='https://github.com/vladikoff/chromeos-apk'
license=('MIT')
depends=('nodejs')
makedepends=('git' 'npm')
source=("git+$url.git")
sha512sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}"
npm install
sed -i 's|\./chromeos-apk\.js|/usr/share/chromeos-apk/chromeos-apk\.js|' chromeos-apk
}
package() {
install -d "$pkgdir/usr/bin" "$pkgdir/usr/share/$_pkgname" "$pkgdir/usr/share/licenses/$pkgname"
cp -r $_pkgname/* "$pkgdir/usr/share/$_pkgname/"
rm -rf "$pkgdir/usr/share/$_pkgname/.git"
mv "$pkgdir/usr/share/$_pkgname/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
mv "$pkgdir/usr/share/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|