summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10194177deb2b4cb248c783b64ba322762143780 (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
# Maintainer: Yen Chi Hsuan <yan12125 at gmail>
# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>

pkgname=android-google-play-licensing
_rev=r02
pkgver="1.${_rev}"
pkgrel=1
epoch=1
pkgdesc='Google Play Licensing client library'
replaces=('android-google-market-licensing')
arch=('any')
url="https://developer.android.com/google/play/licensing/index.html"
license=('custom')
depends=('android-sdk')
options=('!strip')
source=("https://dl-ssl.google.com/android/repository/market_licensing-${_rev}.zip")
sha1sums=('355e8dc304a92a5616db235af8ee7bd554356254')

package() {
  install -Ddm755 "${pkgdir}/opt/android-sdk/extras/google/"
  cp -dr --no-preserve=ownership "${srcdir}/google_market_licensing" \
      "${pkgdir}/opt/android-sdk/extras/google/play_licensing"

  install -Ddm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
  install -Dm644 "${srcdir}/google_market_licensing/LICENSE.txt" \
      "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"

  chmod -R ugo+rX "${pkgdir}/opt"
}