blob: bc7a7f73b6a90e4512554baa544325a5ee7fbbf4 (
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
|
# Maintainer: zhanghua <zhanghua.00@qq.com>
# Contributor: killf <killf@foxmail.com>
pkgname=cgit-vcs-git
pkgver=1.1.0
pkgrel=2
pkgdesc="A fast github clone tool in China"
arch=('x86_64' 'i686' 'aarch64')
url='https://gitee.com/killf/cgit'
license=('MIT')
depends=('git')
makedepends=('cmake')
provides=('cgit-vcs')
conflicts=('cgit-vcs')
source=("git+${url}")
sha256sums=('SKIP')
pkgver(){
cd "${srcdir}/cgit"
git describe --tags | sed "s/-/_/g;s/v//"
}
prepare(){
mkdir -p "${srcdir}/cgit/build"
cd "${srcdir}/cgit/build"
cmake --install-prefix=/usr ..
}
build(){
cd "${srcdir}/cgit/build"
make
}
package(){
cd "${srcdir}/cgit/build"
make DESTDIR="${pkgdir}" install
}
|