Add 'sdc-git/' from commit '6e162e569cd4837d064ad5cd28e1afeefe46ae4c'
git-subtree-dir: sdc-git git-subtree-mainline:b5077fc744
git-subtree-split:6e162e569c
This commit is contained in:
commit
0ac435e50d
2 changed files with 51 additions and 0 deletions
16
sdc-git/.SRCINFO
Normal file
16
sdc-git/.SRCINFO
Normal file
|
@ -0,0 +1,16 @@
|
|||
pkgbase = sdc-git
|
||||
pkgdesc = C port of SD, a very efficient flash cards app
|
||||
pkgver = r30.a5bfafa
|
||||
pkgrel = 2
|
||||
url = https://git.exozy.me/a/sdc
|
||||
arch = any
|
||||
license = GPL
|
||||
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
|
||||
|
||||
pkgname = sdc-git
|
35
sdc-git/PKGBUILD
Normal file
35
sdc-git/PKGBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: Anthony Wang <a aat exozy dotme>
|
||||
|
||||
_pkgname=sdc
|
||||
pkgname="$_pkgname-git"
|
||||
pkgver=r30.a5bfafa
|
||||
pkgrel=2
|
||||
pkgdesc="C port of SD, a very efficient flash cards app"
|
||||
arch=(any)
|
||||
url="https://git.exozy.me/a/$_pkgname"
|
||||
license=('GPL')
|
||||
depends=('sqlite3')
|
||||
optdepends=('python-pyqt6: PyQT6 GUI'
|
||||
'tk: Tkinter GUI')
|
||||
makedepends=('git' 'gcc')
|
||||
source=("$_pkgname::git+$url.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
gcc $CFLAGS sd.c segmenttree.c -o sd -lsqlite3
|
||||
}
|
||||
|
||||
package() {
|
||||
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 -Dm644 sd-add.fish "$pkgdir/usr/share/fish/vendor_functions.d/sd-add.fish"
|
||||
install -Dm644 sqlitevi.fish "$pkgdir/usr/share/fish/vendor_functions.d/sqlitevi.fish"
|
||||
}
|
Loading…
Reference in a new issue