Install GUIs and Fish scripts

This commit is contained in:
Anthony Wang 2024-01-30 22:11:12 -05:00
parent 675a337fe2
commit 5aa7290da8
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ
2 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,6 @@
pkgbase = sdc-git
pkgdesc = C port of SD, a very efficient flash cards app
pkgver = r15.cd9b330
pkgver = r30.a5bfafa
pkgrel = 1
url = https://git.exozy.me/a/sdc
arch = any
@ -8,6 +8,8 @@ pkgbase = sdc-git
makedepends = git
makedepends = gcc
depends = sqlite3
optdepends = python-pyqt6: PyQT6 GUI
optdepends = tk: Tkinter GUI
source = sdc::git+https://git.exozy.me/a/sdc.git
sha256sums = SKIP

View file

@ -2,14 +2,15 @@
_pkgname=sdc
pkgname="$_pkgname-git"
pkgver=r15.cd9b330
pkgver=r30.a5bfafa
pkgrel=1
pkgdesc="C port of SD, a very efficient flash cards app"
arch=(any)
url="https://git.exozy.me/a/$_pkgname"
license=('GPL')
groups=()
depends=('sqlite3')
optdepends=('python-pyqt6: PyQT6 GUI'
'tk: Tkinter GUI')
makedepends=('git' 'gcc')
source=("$_pkgname::git+$url.git")
sha256sums=('SKIP')
@ -25,5 +26,10 @@ build() {
}
package() {
install -Dm755 "$srcdir/$_pkgname/sd" "$pkgdir/usr/bin/sd"
cd "$srcdir/$_pkgname"
install -Dm755 sd "$pkgdir/usr/bin/sd"
install -Dm755 main.py "$pkgdir/usr/bin/sd-qt"
install -Dm755 tkinter.py "$pkgdir/usr/bin/sd-tk"
install -Dm755 sd-add.fish "$pkgdir/usr/share/fish/vendor_functions.d/sd-add.fish"
install -Dm755 sqlitevi.fish "$pkgdir/usr/share/fish/vendor_functions.d/sqlitevi.fish"
}