Added License working on PKGBUILD

currently getting a link error due to libgit2
This commit is contained in:
Pagwin 2024-01-30 09:07:08 -05:00
parent c6e33f39df
commit 4e288efbf6
5 changed files with 74 additions and 10 deletions

24
Cargo.lock generated
View file

@ -25,6 +25,12 @@ version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf"
[[package]]
name = "cc"
version = "1.0.73"
@ -47,7 +53,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750"
dependencies = [
"atty",
"bitflags",
"bitflags 1.3.2",
"clap_derive",
"clap_lex",
"indexmap",
@ -121,11 +127,11 @@ dependencies = [
[[package]]
name = "git2"
version = "0.15.0"
version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2994bee4a3a6a51eb90c218523be382fd7ea09b16380b9312e9dbe955ff7c7d1"
checksum = "fbf97ba92db08df386e10c8ede66a2a0369bd277090afd8710e19e38de9ec0cd"
dependencies = [
"bitflags",
"bitflags 2.4.2",
"libc",
"libgit2-sys",
"log",
@ -192,9 +198,9 @@ checksum = "c0f80d65747a3e43d1596c7c5492d95d5edddaabd45a7fcdb02b95f644164966"
[[package]]
name = "libgit2-sys"
version = "0.14.0+1.5.0"
version = "0.16.1+1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47a00859c70c8a4f7218e6d1cc32875c4b55f6799445b842b0d8ed5e4c3d959b"
checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c"
dependencies = [
"cc",
"libc",
@ -206,9 +212,9 @@ dependencies = [
[[package]]
name = "libssh2-sys"
version = "0.2.23"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b094a36eb4b8b8c8a7b4b8ae43b2944502be3e59cd87687595cf6b0a71b3f4ca"
checksum = "2dc8a030b787e2119a731f1951d6a773e2280c660f8ec4b0f5e1505a386e71ee"
dependencies = [
"cc",
"libc",
@ -341,7 +347,7 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags",
"bitflags 1.3.2",
]
[[package]]

View file

@ -8,6 +8,6 @@ edition = "2021"
[dependencies]
clap = { version = "3.2.22", features = ["derive", "cargo"] }
dirs = "4.0.0"
git2 = "0.15.0"
git2 = "0.18.0"
serde = { version = "1.0.144", features = ["derive"] }
toml = "0.5.9"

22
LICENSE Normal file
View file

@ -0,0 +1,22 @@
MIT License
Copyright (c) 2024 Spencer Powell
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

32
PKGBUILD Normal file
View file

@ -0,0 +1,32 @@
pkgname='ppi-git'
_name='ppi'
pkgver='1.1.2'
pkgrel='1'
pkgdesc="Pagwin's project initializer, a program which makes setting up project scaffolding easy"
# I could set this to any or all the archictectures but I can't easily test for those so change this if needed
arch=('x86_64')
url='https://github.com/Pagwin-Fedora/ppi'
license=('MIT')
depends=('glibc' 'openssl' 'zlib' 'libssh2' 'libgit2')
makedepends=('git' 'rust' 'libssh2' 'libgit2')
#
provides=('ppi')
conflicts=('ppi')
source=("git+$url")
b2sums=('SKIP')
build(){
cd $_name
cargo build --release
}
package(){
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_name/LICENSE"
install -Dm755 target/release/ppi "$pkgdir/usr/bin/ppi"
}

4
build.rs Normal file
View file

@ -0,0 +1,4 @@
pub fn main() {
println!("cargo:rustc-link-lib=git2");
println!("cargo:rustc-link-lib=ssh2");
}