File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ #  Maintainer: Kimiblock Moe
2+ 
3+ pkgname=clash-rs
4+ pkgdesc=" custom protocol network proxy" 
5+ url=" https://github.com/Watfaq/clash-rs" 
6+ license=(" Apache-2.0" 
7+ arch=(" any" 
8+ pkgver=0.7.7
9+ pkgrel=1
10+ makedepends=(" cargo-nightly" " git" 
11+ depends=(" gcc-libs" " glibc" " xz" " protobuf" 
12+ source=(" git+https://github.com/Watfaq/clash-rs.git#tag=v${pkgver} " 
13+ sha256sums=(' be93350a4d89b406dc94a577ff3330557313f3d520635d2172018d3a6bd8ab46' 
14+ provides=(" clash-rs" 
15+ options=(! lto)
16+ 
17+ function  prepare()  {
18+ 	cd  " ${srcdir} /clash-rs" 
19+ 	export  RUSTUP_TOOLCHAIN=stable
20+ 	cargo fetch --target " $CARCH -unknown-linux-gnu" 
21+ }
22+ 
23+ function  build()  {
24+ 	cd  " ${srcdir} /clash-rs" 
25+ 	# export RUSTUP_TOOLCHAIN=stable
26+ 	export  CARGO_TARGET_DIR=target
27+ 	cargo build --release --frozen --all-features --locked
28+ }
29+ 
30+ function  package()  {
31+ 	install -Dm755 " ${srcdir} /clash-rs/target/release/clash-rs" " ${pkgdir} /usr/bin/clash-rs" 
32+ 	install -Dm644 " ${srcdir} /clash-rs/LICENSE" " ${pkgdir} /usr/share/licenses/${pkgname} /LICENSE" 
33+ }
Original file line number Diff line number Diff line change 1+ maintainers :
2+   - github : Kimiblock 
3+ 
4+ pre_build_script : update_pkgver_and_pkgrel(_G.newver) 
5+ post_build_script : | 
6+   git_pkgbuild_commit() 
7+   update_aur_repo() 
8+ 
9+ update_on :
10+   - source : " github" 
11+     github : " Watfaq/clash-rs" 
12+     use_latest_release : true 
13+     include_prereleases : false 
14+     prefix : " v" 
15+ build_prefix : extra-x86_64 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments