-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Modify PKGBUILDs to make package creation work on Arch Linux
- Loading branch information
1 parent
a887db6
commit 277a8a0
Showing
3 changed files
with
8 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,18 @@ | |
# Maintainer: shivanandvp <[email protected], [email protected]> | ||
|
||
PKGVER_STUB=0.0.1 | ||
pkgver=0.0.1.2023_08_31_04 | ||
pkgver=0.0.1.2024_05_19_01 | ||
pkgrel=1 | ||
pkgbase='paxy' | ||
pkgname=('paxy-cli-local' 'paxy-gui-local' 'paxy-db-local') | ||
pkgname=('paxy-cli-local' 'paxy-gui-local') | ||
arch=('x86_64') | ||
url="https://github.com/shivanandvp/paxy" | ||
makedepends=('cargo' 'gtk4' 'base-devel') | ||
source=() | ||
sha256sums=() | ||
|
||
prepare() { | ||
export PROJECT_DIRECTORY="$(dirname -- "$(dirname -- "$(dirname -- "$(pwd)")")")" | ||
export PROJECT_DIRECTORY="$(dirname -- "$(dirname -- "$(dirname -- "$(dirname -- "$(pwd)")")")")" | ||
export RESOURCE_DIRECTORY="$PROJECT_DIRECTORY/packaging/resources" | ||
export BUILD_DIRECTORY="$PROJECT_DIRECTORY/target" | ||
} | ||
|
@@ -30,14 +30,7 @@ build() { | |
cargo build \ | ||
--release \ | ||
--all-features \ | ||
--target-dir="target" \ | ||
|
||
cargo run \ | ||
--bin="paxy-cli" \ | ||
-- \ | ||
generate-database \ | ||
"$PROJECT_DIRECTORY/paxy-db/input-file.yaml" \ | ||
"$PROJECT_DIRECTORY/target/database.db" | ||
--target-dir="target" | ||
) | ||
} | ||
|
||
|
@@ -48,9 +41,6 @@ package_paxy-cli-local() { | |
license=('MPL2') | ||
conflicts=("paxy-cli" "paxy-cli-git" "paxy-gui" "paxy-gui-local" "paxy-gui-git") | ||
|
||
# To bypass makepkg's dependency check during build-time | ||
optdepends+=("paxy-db") | ||
|
||
( | ||
cd "$PROJECT_DIRECTORY" | ||
|
||
|
@@ -69,9 +59,6 @@ package_paxy-gui-local() { | |
license=('MPL2') | ||
conflicts=("paxy-gui" "paxy-gui-git" "paxy-cli" "paxy-cli-local" "paxy-cli-git") | ||
|
||
# To bypass makepkg's dependency check during build-time | ||
optdepends+=("paxy-db") | ||
|
||
( | ||
cd "$PROJECT_DIRECTORY" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters