diff --git a/sdc-git/.SRCINFO b/sdc-git/.SRCINFO new file mode 100644 index 0000000..5fd634b --- /dev/null +++ b/sdc-git/.SRCINFO @@ -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 diff --git a/sdc-git/PKGBUILD b/sdc-git/PKGBUILD new file mode 100644 index 0000000..7c2d085 --- /dev/null +++ b/sdc-git/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Anthony Wang + +_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" +}