blob: a3fa145f418260c62480b336adc3b21be6ccdf82 (
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
37
38
39
40
41
|
# Maintainer: SteamedFish <steamedfish@hotmail.com>
pkgname=redsea-git
_pkgname=redsea
pkgver=v0.21.r0.g5dcbec1
pkgrel=1
pkgdesc="RDS decoder for the command line "
arch=(x86_64 aarch64)
url="https://github.com/windytan/redsea"
license=(MIT)
provides=('redsea')
conflicts=('redsea')
depends=('glibc' 'gcc-libs' 'libsndfile' 'liquid-dsp')
makedepends=('git')
source=(
"$pkgname"::git+https://github.com/windytan/$_pkgname.git
)
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
# use git tag or fall back to number of revisions
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd $pkgname
./autogen.sh
./configure --prefix=/usr
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|