blob: ae59e50e38373ce7d587928974a4adf1b1aaf2fe (
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
|
# Maintainer: Pedro Veloso <pedro.n.veloso at gmail dot com>
# Maintainer: Jonathan Zacsh <j@zac.sh>
pkgname=pidcat-git
pkgver=2.1.0.r14.0cb1c2c
pkgrel=1
pkgdesc="Pidcat is a colored logcat script with improved readability that only shows log entries for a specific Android package."
arch=('any')
url="https://github.com/JakeWharton/pidcat"
license=('Apache')
depends=(android-tools python2)
source=("git+$url.git" "pidcat.patch")
md5sums=('SKIP' "c9bfb27615710b5ddaaf74cef0042a17")
build() {
cd "$srcdir/${pkgname%-git}"
patch -N pidcat.py "$srcdir"/pidcat.patch
}
package() {
cd "$srcdir/${pkgname%-git}"
# Install license
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE.txt
# Install run script
install -Dm755 pidcat.py "$pkgdir"/usr/bin/pidcat
}
pkgver() {
# per https://gitlab.archlinux.org/pacman/pacman/blob/edce7555a6b7410d1a4da6d27d22383989306ccc/proto/PKGBUILD-vcs.proto#L46
cd "$srcdir/${pkgname%-git}"
git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
|