Skip to content

Commit

Permalink
Add PKGBUILD and better name for the binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Atreyagaurav committed Jan 6, 2024
1 parent 73f8391 commit f255106
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ name = "string_template_plus"
path = "src/lib.rs"

[[bin]]
name = "string-template-plus-visualize"
path = "src/bin/visual-test.rs"
name = "stp-visualize"
path = "src/bin/stp-visualize.rs"
19 changes: 19 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Maintainer: Gaurav Atreya <allmanpride@gmail.com>
pkgname=string-template-plus
pkgver=0.4.1
pkgrel=1
pkgdesc="String Template with extra functionalities"
arch=('x86_64')
license=('GPL3')
depends=('gcc-libs')
makedepends=('rust' 'cargo')

build() {
cargo build --release
}

package() {
cd "$srcdir"
mkdir -p "$pkgdir/usr/bin"
cp "../target/release/stp-visualize" "$pkgdir/usr/bin/stp-visualize"
}
File renamed without changes.

0 comments on commit f255106

Please sign in to comment.