summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a01074ef7827f803e40e88533b90b462161706b3 (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
# Maintainer: Yufan You <ouuansteve at gmail>

pkgname=auth-thu-bin
pkgver=2.2.1
pkgrel=2
provides=('auth-thu')
conflicts=('auth-thu')
pkgdesc='A commandline Tunet (auth4/6.tsinghua.edu.cn, Tsinghua-IPv4) authentication tool'
arch=('x86_64')
url='https://github.com/z4yx/GoAuthing'
license=('GPL-3.0-only')
source=(
  "$pkgname-$pkgver::$url/releases/download/v$pkgver/auth-thu.linux.$CARCH"
  "$url/raw/v$pkgver/docs/goauthing.service"
  "$url/raw/v$pkgver/docs/goauthing6.service"
  "$url/raw/v$pkgver/docs/goauthing6@.service"
  "$url/raw/v$pkgver/docs/goauthing@.service"
)
sha256sums=('c039a9dffa4aedec38b3544f2fb1f85cd2dde096f68977689147ce2f668c07f0'
            'cfef26f4e2bf6aa336713372f7e015c477da0c1c976e6a609a0398ddbc710e16'
            'c78e6168e14cb41f294f3b9632c38a48a1522e50c8d94ff7de8abe70e8b3e644'
            'c97cfda5a20d7b1f52e0ca003567f2671aea9142ec4932cae74ffa89d0b0e093'
            '177bad4c4af6479b710510da57803ae536ad5079f73aae493071adefa49c3d8f')

package() {
    install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/auth-thu"
    sed -i "s|/usr/local/bin/auth-thu|/usr/bin/auth-thu|g" goauthing*.service
    install -Dm644 goauthing*.service -t "$pkgdir/usr/lib/systemd/system"
}