Compare commits
5 Commits
ab854ed5ed
...
v1.0.4
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a26f3fdd5 | |||
| 647bdd80ea | |||
| 33e8b490f5 | |||
| 07a32672d3 | |||
| 9407e95481 |
@@ -38,7 +38,7 @@ $(OBJ_PATH)/%.o: $(SRC_PATH)/%.cpp $(SRC_PATH)/%.h
|
||||
|
||||
|
||||
install:
|
||||
@install -vpm 755 -o root -g root $(BIN_PATH)/bakatui /usr/bin/
|
||||
@install -Dvpm 755 -o root -g root $(BIN_PATH)/bakatui $(DESTDIR)/usr/bin/
|
||||
|
||||
clean:
|
||||
rm -fr build
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
pkgname="bakatui"
|
||||
_pkgname="bakatui"
|
||||
provides=("${_pkgname}")
|
||||
conflicts=("${_pkgname}")
|
||||
pkgver=1.0.3.r0.gab854ed
|
||||
pkgrel=1
|
||||
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64' 'riscv64')
|
||||
url=https://git.pupes.org/PoliEcho/bakatui
|
||||
pkgdesc="bakalari for your terminal"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=(
|
||||
'curl'
|
||||
'ncurses'
|
||||
)
|
||||
makedepends=('nlohmann-json'
|
||||
'curl'
|
||||
)
|
||||
source=("git+${url}.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
git fetch --tags 2>/dev/null
|
||||
|
||||
local _tag=$(git tag -l 'v[0-9]*' | grep -E '^v[0-9]+\.[0-9]+' | sort -V | tail -n1)
|
||||
|
||||
if [ -z "$_tag" ]; then
|
||||
echo "0.0.0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
||||
else
|
||||
git describe --long --tags "$_tag" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
|
||||
local _tag=$(git tag -l 'v[0-9]*' | grep -E '^v[0-9]+\.[0-9]+' | sort -V | tail -n1)
|
||||
|
||||
if [ -n "$_tag" ]; then
|
||||
echo "Checking out tag: $_tag"
|
||||
git checkout "$_tag"
|
||||
else
|
||||
echo "Warning: No version tags found, using HEAD"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
mkdir -p "${pkgdir}/usr/bin"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
@@ -11,5 +11,9 @@
|
||||
> - [x] Marks
|
||||
> - [x] Timetable
|
||||
> - [x] Komens
|
||||
> - [ ] Absence
|
||||
> - [x] Absence
|
||||
> - [ ] Homework
|
||||
|
||||
> #### Known Issues
|
||||
> this program will break if your terminal is higher or wider than 65535 characters (or UINT16_MAX if it ever changes), if you terminal is deeper than 65535 characters it shouldn't be an issue please refer to your 3D terminal manual for 2D compatibility
|
||||
> *WILL NOT FIX BECAUSE OF 1 PERSON WITH A GIGALITIC TERMINAL*
|
||||
|
||||
+3
-2
@@ -56,7 +56,7 @@ void absence_page() {
|
||||
init_pair(i, i, COLOR_BLACK);
|
||||
}
|
||||
|
||||
const uint16_t sum_win_height = (resp_from_api["Absences"].size()*2)+1;
|
||||
const uint16_t sum_win_height = (resp_from_api["Absences"].size()*2)+3;
|
||||
const uint16_t sum_win_width = 1+DATE_LEN+1+(SUM_FIELD_NUM*4);
|
||||
const float absence_threshold = resp_from_api["PercentageThreshold"].get<float>()*100.0f;
|
||||
{
|
||||
@@ -74,7 +74,8 @@ void absence_page() {
|
||||
wattroff(sum_win, sum_field_colors[i]);
|
||||
}
|
||||
|
||||
for (size_t i = 0; resp_from_api["Absences"].size()-1 > i; i++) {
|
||||
// iterate true all dates
|
||||
for (size_t i = 0; resp_from_api["Absences"].size() > i; i++) {
|
||||
mvwaddch(sum_win, 2+(i*2), 0, ACS_LTEE);
|
||||
mvwhline(sum_win, 2+(i*2), 1, ACS_HLINE, DATE_LEN);
|
||||
mvwaddch(sum_win, 2+(i*2), 1+DATE_LEN, ACS_PLUS);
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include <string_view>
|
||||
#ifndef VERSION
|
||||
|
||||
#define VERSION "1.0.0"
|
||||
#define VERSION "1.0.4"
|
||||
#define NAME "bakatui"
|
||||
|
||||
inline constexpr auto hash_djb2a(const std::string_view sv) {
|
||||
|
||||
Reference in New Issue
Block a user