summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09f6ce0858855f43392a5f6364582b3519849f24 (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: iflygo <iflygo@outlook.com>

_pkgname='seam'
pkgname="${_pkgname}-git"
pkgver=0.1.23.r20.g154a79e
pkgrel=1
pkgdesc="Get real url, support douyu, huyu, bilibili etc"
arch=('any')
url="https://github.com/Borber/seam"
license=('')
depends=('openssl-1.1' 'zlib')
makedepends=(
  'git'
  'cargo'
  'rust'
)
provides=(
  "${_pkgname}"
  )
conflicts=(
  "${_pkgname}"
  )
source=(
  "${_pkgname}::git+https://github.com/Borber/seam.git"
  )
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
}

build() {
  cd "$srcdir/$_pkgname"
  cargo build --release
}

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}