From 277a8a05eb330e75081b4eae5004bd701fbe2c52 Mon Sep 17 00:00:00 2001 From: pvshvp-oss Date: Sun, 19 May 2024 02:00:54 -0500 Subject: [PATCH] build: Modify PKGBUILDs to make package creation work on Arch Linux --- packaging/archlinux/paxy-git/PKGBUILD | 17 ++--------------- packaging/archlinux/paxy-local/PKGBUILD | 21 ++++----------------- packaging/archlinux/paxy/PKGBUILD | 17 ++--------------- 3 files changed, 8 insertions(+), 47 deletions(-) diff --git a/packaging/archlinux/paxy-git/PKGBUILD b/packaging/archlinux/paxy-git/PKGBUILD index 993f124..38fbe32 100644 --- a/packaging/archlinux/paxy-git/PKGBUILD +++ b/packaging/archlinux/paxy-git/PKGBUILD @@ -5,7 +5,7 @@ pkgver=0.0.1 pkgrel=1 pkgbase='paxy' -pkgname=('paxy-cli-git' 'paxy-gui-git' 'paxy-db-git') +pkgname=('paxy-cli-git' 'paxy-gui-git') arch=('x86_64') url="https://github.com/shivanandvp/paxy" makedepends=('git' 'cargo' 'gtk4' 'base-devel') @@ -33,14 +33,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" ) } @@ -51,9 +44,6 @@ package_paxy-cli-git() { license=('MPL2') conflicts=("paxy-cli" "paxy-cli-local" "paxy-gui" "paxy-gui-local" "paxy-gui-git") - # To bypass makepkg's dependency check during build-time - optdepends+=("paxy-db") - ( cd "$PROJECT_DIRECTORY" @@ -71,9 +61,6 @@ package_paxy-gui-git() { depends=('gtk4') license=('MPL2') conflicts=("paxy-gui" "paxy-gui-local" "paxy-cli" "paxy-cli-local" "paxy-cli-git") - - # To bypass makepkg's dependency check during build-time - optdepends+=("paxy-db") ( cd "$PROJECT_DIRECTORY" diff --git a/packaging/archlinux/paxy-local/PKGBUILD b/packaging/archlinux/paxy-local/PKGBUILD index 28e9708..ac4221d 100644 --- a/packaging/archlinux/paxy-local/PKGBUILD +++ b/packaging/archlinux/paxy-local/PKGBUILD @@ -3,10 +3,10 @@ # Maintainer: shivanandvp 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') @@ -14,7 +14,7 @@ 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" diff --git a/packaging/archlinux/paxy/PKGBUILD b/packaging/archlinux/paxy/PKGBUILD index ca0533d..c8fde9a 100644 --- a/packaging/archlinux/paxy/PKGBUILD +++ b/packaging/archlinux/paxy/PKGBUILD @@ -5,7 +5,7 @@ pkgver=0.0.1 pkgrel=1 pkgbase='paxy' -pkgname=('paxy-cli' 'paxy-gui' 'paxy-db') +pkgname=('paxy-cli' 'paxy-gui') arch=('x86_64') url="https://github.com/shivanandvp/paxy" makedepends=('git' 'cargo' 'gtk4' 'base-devel') @@ -25,14 +25,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" ) } @@ -43,9 +36,6 @@ package_paxy-cli() { license=('MPL2') conflicts=("paxy-cli-local" "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" @@ -63,9 +53,6 @@ package_paxy-gui() { depends=('gtk4') license=('MPL2') conflicts=("paxy-gui-local" "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"