Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions packages/ascii/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
BSD LICENSE

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be automatically detected and copied from the source code of the package without you needing to do anything and without you needing to place it in the packages/ascii folder.

Copyright (c) 2015, Eric S. Raymond
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17 changes: 17 additions & 0 deletions packages/ascii/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TERMUX_PKG_HOMEPAGE=http://www.catb.org/~esr/ascii/
TERMUX_PKG_DESCRIPTION="List ASCII idiomatic names and octal/decimal code-point forms"
TERMUX_PKG_LICENSE=BSD-2-Clause
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.30
TERMUX_PKG_SRCURL=https://gitlab.com/esr/ascii/-/archive/$TERMUX_PKG_VERSION/ascii-$TERMUX_PKG_VE>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a small typo here

Image

I recommend using the source URL that other distros use, http://www.catb.org/~esr/ascii/ascii-3.30.tar.gz, which can be formatted here as "http://www.catb.org/~esr/ascii/ascii-$TERMUX_PKG_VERSION.tar.gz"

TERMUX_PKG_SHA256=8753ddf7ef4f477af50f69208fab09e5dad85033e04611de94b6b679ce59b001
TERMUX_PKG_LICENSE_FILE=COPYING
TERMUX_PKG_BUILD_IN_SRC=true

termux_step_make() {
make
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this step can probably automatically occur without termux_step_make() needing to be explicitly defined.

}

termux_step_make_install() {
make DESTDIR=$TERMUX__PREFIX PREFIX= install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step can probably be replaced with a variable TERMUX_PKG_EXTRA_MAKE_ARGS="DESTDIR=$TERMUX_PREFIX PREFIX=", or else completely removed if it would still install correctly without this needing to be specified.

}
Loading