blob: 73b14d1b30af187cf0dec1f77fd5ac58f5b45bdf (
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
|
# Maintainer: Daniel Peukert <daniel@peukert.cc>
_pkgname='hlsdl'
pkgname="$_pkgname-git"
pkgver='0.27.r195.g84c1ded'
pkgrel='1'
pkgdesc='C program to download VoD HLS (.m3u8) files - git version'
arch=('x86_64' 'i486' 'i686' 'pentium4' 'armv7h' 'aarch64')
url="https://github.com/selsta/$_pkgname"
license=('MIT')
depends=('curl' 'openssl')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::git+$url")
b2sums=('SKIP')
_sourcedirectory="$pkgname"
pkgver() {
cd "$srcdir/$_sourcedirectory/"
printf '%s.r%s.g%s' "$(sed -nE 's/^.*hlsdl v([0-9.]*).*$/\1/p' 'src/misc.c')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_sourcedirectory/"
make
}
check() {
_checkoutput="$("$srcdir/$_sourcedirectory/$_pkgname")"
printf '%s\n' "$_checkoutput"
printf '%s\n' "$_checkoutput" | grep -q "^$_pkgname v"
}
package() {
cd "$srcdir/$_sourcedirectory/"
install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/MIT"
install -Dm644 "$_pkgname.1" "$pkgdir/usr/share/man/man1/$_pkgname.1"
}
|