summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2b7f21b352cc3023d837595e8062e548ab8c33f (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
42
43
44
45
46
# Maintainer: TurtleRuss <tttturtleruss@gmail.com> 

pkgname=hustmirror-cli
pkgver=1.1.4
pkgrel=1
epoch=
pkgdesc="The command line tool (hustmirror-cli) is a small tool that can help you quickly change sources to HUST mirror sources."
arch=('any')
license=('GPL-3.0-only')
url='https://github.com/hust-open-atom-club/hustmirror-cli'
groups=()
depends=('bash')
makedepends=('make' 'python3')
checkdepends=()
optdepends=()
provides=()
conflicts=(hustmirror-cli-git)
replaces=()
backup=()
options=()
install=
changelog=
source=("$pkgname-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
        "$pkgname.patch"
	"$pkgname-makefile.patch")
noextract=()
sha256sums=('SKIP'
            'a08dfc1246edcb721505d717dff36abdaa4aee0f1a74c02d4eece69f563cb5e8'
	    '04c5c54b8dbf4f43d58024aacbfb05e769b5745a6bd090c1d2dbea6ce9f80b5d')
validpgpkeys=()

prepare() {
	cd "$pkgname-${pkgver}"
	patch -p1 -i "$srcdir/$pkgname.patch"
	patch -p1 -i "$srcdir/$pkgname-makefile.patch"
}

build() {
	cd "$pkgname-${pkgver}"
	make
}

package() {
	cd "$pkgname-${pkgver}"
	make DESTDIR="$pkgdir/" install
}