Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
me-and committed Feb 2, 2024
0 parents commit 3c14abd
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: CI
on: [push, pull_request]
jobs:
build-test:
uses: cygporter/workflows/.github/workflows/build-test.yml@v1
with:
cygport_file: tasksh.cygport
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This repository contains the files required to build and package
[tasksh][] for [Cygwin][].

[tasksh]: https://github.com/GothenburgBitFactory/taskshell
[Cygwin]: https://cygwin.com/
37 changes: 37 additions & 0 deletions tasksh.cygport
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
NAME=tasksh
VERSION=1.2.0
RELEASE=1
CATEGORY=Office
SUMMARY='A shell for Taskwarrior'
DESCRIPTION='Tasksh is a shell for Taskwarrior'
HOMEPAGE=https://github.com/GothenburgBitFactory/taskshell
LICENSE=MIT

# This tarball needs manually preparing:
# - It must include the submodules, which are missing from the main upstream
# source package and can't be downloaded directly because the v1.2.0 tag in
# the upstream repository has the wrong submodule URL.
# - It must include the .git directory, as that's used by the build process.
SRC_URI=taskshell.tar.xz
SRC_DIR=taskshell

BUILD_REQUIRES=cmake

inherit cmake

src_compile () {
# Need to manually link the .git directory, as the build depends on it
# but lndirs skips it.
lndirs
ln -s "$S"/.git "$B"/.git
cd "$B"
cygcmake -DCMAKE_BUILD_TYPE=release -DTASK_DOCDIR=share/doc/tasksh .
cygmake
}

src_test () {
# Tests rely on Python2.7 and so are broken. Don't run them.
:
}

# vim: set noexpandtab tabstop=8 listchars=tab\:\ \ ,trail\:-,lead\:-
Binary file added taskshell.tar.xz
Binary file not shown.

0 comments on commit 3c14abd

Please sign in to comment.