blob: 19994e47d84fb874934a40cd164200abd08cf644 (
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
|
pkgname=pmrp-git
pkgver=r9.910741d
pkgrel=3
pkgdesc="Little Bash script for playing various internet radio stations"
arch=('any')
url="https://github.com/hakerdefo/pmrp"
license=('Creative Commons Zero')
depends=('mpg123')
makedepends=('git')
source=($pkgname::git+https://github.com/hakerdefo/pmrp.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$pkgname"
mkdir -p "$pkgdir/usr/bin"
cp pmrp "$pkgdir/usr/bin/pmrp"
chmod +x "$pkgdir/usr/bin/pmrp"
}
|