Commit Graph

218 Commits

Author SHA1 Message Date
Henrik Grimler 4df44858f6 build-package: mv termux_setup_meson to scripts/build/setup 2019-02-27 21:59:08 +02:00
Henrik Grimler 6888baf268 build-package: mv termux_setup_ninja to scripts/build/setup 2019-02-27 21:59:08 +02:00
Henrik Grimler 2bd607112b build-package: mv termux_setup_rust to scripts/build/setup 2019-02-27 21:59:08 +02:00
Henrik Grimler 7eb7ad6617 build-package: mv termux_setup_golang to scripts/build/setup 2019-02-27 21:59:08 +02:00
Henrik Grimler a927332bd9 build-package: mv termux_download to scripts/build/ 2019-02-27 21:59:08 +02:00
Henrik Grimler f36687b8e7 build-package: mv termux_step_host_build to scripts/build/ 2019-02-27 21:59:08 +02:00
Henrik Grimler d159e59699 build-package: mv termux_step_handle_hostbuild to scripts/build/ 2019-02-27 21:59:08 +02:00
Henrik Grimler c0b579ed14 build-package: mv termux_error_exit to scripts/build/ 2019-02-27 21:59:08 +02:00
Leonid Pliushch 03fcde2750 scripts/run-docker.sh: use sudo for privileged operations (when changing uid/gid) 2019-02-25 02:12:51 +02:00
Wetitpig 45eb50aa77 Remove relevant instructions 2019-02-24 21:08:38 +02:00
Wetitpig 5bbab4a259 Switch User in Docker 2019-02-24 21:08:38 +02:00
its-pointless 0320a92780 fix ndk versions 2019-02-24 20:39:35 +02:00
its-pointless c1b65a538e version names change 2019-02-24 20:39:35 +02:00
Fredrik Fornwall e520dfbe12 Initial changes for NDK r19 support 2019-02-24 20:39:35 +02:00
Henrik Grimler 07656065e3 build-package.sh: handle Release.gpg and get deb path from Package
This makes it possible to download .debs from dl.bintray.com/xeffyr
2019-02-16 18:55:15 +01:00
Wetitpig 72eaf12358 Dockerfile to tabs 2019-02-15 18:01:09 +02:00
Wetitpig 7ddcce5701 No backticks 2019-02-15 18:01:09 +02:00
Wetitpig d50c847f11 Shell script compliance 2019-02-15 18:01:09 +02:00
Wetitpig 4e9a1891ba 3 COPY to 1 2019-02-15 17:27:41 +02:00
Leonid Pliushch 399499497c gitlab ci: remove unnecessary steps from build procedure 2019-02-11 00:19:16 +02:00
Leonid Pliushch 44535fa532 gitlab ci: download dependencies instead of building them 2019-02-10 22:06:00 +02:00
Leonid Pliushch c39dfb60ac gitlab ci: use official Termux docker image 2019-02-10 21:57:40 +02:00
Henrik Grimler fc91a52c96 Make it possible to download dependencies from several repositories
Only thing left to fix is so that it finds build scripts outside of packages/.
2019-02-10 12:26:32 +01:00
Henrik Grimler fba622856c Move termux_dep_extract_info to another function
Can be used in bintray upload script to extract pkg version
2019-02-03 15:02:06 +01:00
Leonid Pliushch bf94539c0f setup-ubuntu.sh: install "devscripts"
Makes utility "debdiff" available.
2019-01-28 14:20:45 +00:00
Henrik Grimler c9a52d8d74 Add gnupg to docker image 2019-01-28 14:20:45 +00:00
Henrik Grimler 3d8d7411ab build-package.sh: return 1 if hashsum doesn't exist for package
When downloading depencencies
2019-01-28 14:20:45 +00:00
Henrik Grimler 645f594f4b Rename get_pkg_hash.py->get_hash_from_file.py 2019-01-28 14:20:45 +00:00
Henrik Grimler 0d6fd79726 build-package: Add signature verification and download by hash
Also rename termux_install_dep_deb to termux_download_deb.
2019-01-28 14:20:44 +00:00
Fredrik Fornwall ca5ead6780 Update latest android platform and build-tools 2019-01-27 09:03:08 +01:00
Wetitpig a976fd4223 Accept licenses for Android SDK 2019-01-22 22:52:35 +01:00
Henrik Grimler db54f7de89 buildorder.py: shorten code a bit 2019-01-13 18:55:40 +01:00
Henrik Grimler ae2bdf510a setup-archlinux: add gperf as dependency for fontconfig 2018-12-30 13:04:12 +01:00
Fredrik Fornwall dac82cc5d4 Dockerfile: Update from ubuntu 18.04 to 18.10 2018-11-27 00:25:40 +01:00
Henrik Grimler 2fc73cef77 archlinux needs patch as well 2018-11-25 00:56:56 +01:00
Henrik Grimler b74135c32d properties.sh: 'source'->'.' 2018-11-10 23:40:13 +01:00
Kevin Cotugno 9c1bf26e56 Build for host
This fixes the issue where clippy failed to build for arm causing that
release to be incomplete.

We remove the host files from the install directory to reduce the final
size is minimal.
2018-10-31 23:02:22 +01:00
Fredrik Fornwall fc9fd770a4 python: Update from 3.6.6 to 3.7.1 2018-10-21 21:16:53 +02:00
Fredrik Fornwall 613a4c4dd8 Tweak repology metadata script 2018-10-14 23:14:06 +02:00
Fredrik Fornwall 0eb957e0e4 Dockerfile: Clean up for ndk r18 2018-09-27 01:06:34 +02:00
Fredrik Fornwall 0671f0ffea weechat: Bundle man pages with asciidoctor 2018-09-26 08:26:51 +02:00
Fredrik Fornwall 035a00ed4a setup-ubuntu.sh: Remove xutils-dev 2018-09-25 00:32:00 +02:00
Fredrik Fornwall 62c6c16c03 Add scripts/ldd utility script 2018-09-22 00:25:27 +02:00
Fredrik Fornwall 02c0668a9b Update to NDK r18 (#2827) 2018-09-19 23:29:39 +02:00
Fredrik Fornwall 81d6f9dc0a setup-ubuntu.sh: Install g++-multilib
Needed by nodejs when building for 32-bit arches.
2018-09-12 07:07:49 +02:00
Fredrik Fornwall 76727af5e5 Fix mac error in scripts/run-docker.sh 2018-09-11 22:32:58 +02:00
Stephen acd3fa08a7 Update setup-ubuntu.sh 2018-08-28 22:58:31 +02:00
Stephen 6546af166c add gawk for apr-util build
#1169
2018-08-28 22:58:31 +02:00
Fredrik Fornwall 89f52767c0 Use https for downloading the android ndk 2018-08-27 22:25:51 +02:00
Laurent Arnoud 3d75da3db5 Check checksum on android sdk and ndk download 2018-08-27 22:21:01 +02:00
Fredrik Fornwall 2c3f54682a Remove old and unused scripts/build-clang.sh 2018-08-21 01:36:41 +02:00
Fredrik Fornwall b3f68a9b5c Update build tools version to 28.0.2
Also extract setting ndk and build tools version to
scripts/properties.sh to avoid duplication.
2018-08-15 16:52:18 +02:00
Fredrik Fornwall b080944831 Use newer sdk-tools-linux in setup-android-sdk.sh 2018-08-01 22:24:19 +02:00
Henrik Grimler 933afcd2f6 texlive-bin: host-build tools and rm texlive-binaries from setup-ubuntu.sh (#2689)
Saves about 300 mb from docker image
2018-07-31 22:57:22 +02:00
Fredrik Fornwall 047754e8fa Update android sdk build tools
Update the android sdk build tools from 27.0.3 to 28.0.1, bringing
in d8 which is replacing dx.

This needs an update of the Docker image, so run scripts/update-docker.sh
to update it.
2018-07-26 12:21:43 +02:00
Fredrik Fornwall 7634072451 run-docker.sh: Allow multiple containers
By defining CONTAINER_NAME one can now build from multiple containers:

    CONTAINER_NAME=builder1 ./scripts/run-docker.sh
    CONTAINER_NAME=builder2 ./scripts/run-docker.sh
    ...
2018-07-23 01:34:06 +02:00
Fredrik Fornwall 56088203df Add script to check built versions 2018-07-02 14:00:15 +02:00
Fredrik Fornwall 1e4bea57d9 Update repology metadata generation
Fix empty dx version and write out empty depends array.
2018-06-22 23:35:39 +02:00
Fredrik Fornwall dae66641d4 Fix issue in generate-repology-metadata.sh 2018-06-22 23:35:39 +02:00
Fredrik Fornwall 0963ff0422 Add scripts/generate-repology-metadata.sh 2018-06-22 01:15:35 +02:00
Fredrik Fornwall 11c80acb01 Handle dependencies like 'a | b' in buildorder.py 2018-06-16 22:50:06 +02:00
Vishal Biswas 160d3aeb06 update ndk to 17 and switch some packages to clang build (#2415)
* update ndk to 17

* bump NDK version in setup-android script

* libnl: fix for ndk r17

* libpixman: use clang's __builtin_shufflevector instead of __builtin_shuffle (#1)

Required to make package build with ndk17.

* fix as for arm

* ndk17 still uses ld.bfd on aarch64

* use -fno-integrated-as for clang only

* glib: remove patch unnecessary after ndk17

* torsocks: remove unneeded patch after ndk17

* subversion: fix build as clang++ now errors out for mismatched flags

* libpulseaudio: fix build with ndk17

https://github.com/termux/termux-packages/pull/2415#issuecomment-388296684

* gst-plugins-good: disable video4linux2

ioctl is defined as __overloadable in ndk17 headers which
  conflicts with v4l2object's member ioctl

* libzmq: disable Werror to build with ndk17

* ltrace: hardcode symbol not available in ndk17

* busybox: build with clang for all arches except arm

* dropbear: build with clang instead of gcc

* gnupg: build with clang instead of gcc

* openssl: use clang for all arches except arm

* picolisp: build with clang instead of gcc

* valgrind: use clang on all arches except aarch64

* Revert "gst-plugins-good: disable video4linux2"

This reverts commit 43850b81ccf60033c25cb13dfd326c1b0528773a.
Already applied on base branch.

* libllvm: use default arm triple
2018-05-27 14:55:20 +02:00
Fredrik Fornwall 9ccc908e26 Update to ubuntu 18.04 in docker image 2018-05-02 23:01:29 +02:00
Fredrik Fornwall c8ea6b6c63 setup-ubuntu.sh: ant is no longer used 2018-05-02 23:00:28 +02:00
Fredrik Fornwall 96c9f0466f Update android build tools from 27.0.1 to 27.0.3 2018-03-25 00:08:20 +01:00
tomty89 92fb0e15fd ecj: provide android-21.jar instead of android-16.jar (#2274) 2018-03-25 00:02:47 +01:00
Fredrik Fornwall 0c469ce1df Update meson build system from 0.44.0 to 0.45.1 2018-03-22 23:15:12 +01:00
sogaiu efe2d03821 Vagrantfile tweaks
Existing Vagrantfile lead to some problems here during provisioning:

  1. setup-ubuntu.sh would fail

and after:

  2. build-all.sh would run out of disk space
  3. build-all.sh would exit due to permission issues

Issue 1 can be addressed by running sudo apt-get update before setup-ubuntu.sh in the Vagrantfile.

One way to address issue 2 is to use the vagrant-disksize plugin:

  https://github.com/sprotheroe/vagrant-disksize

It can be installed by:

  vagrant plugin install vagrant-disksize

Then modifying Vagrantfile to contain a line like:

  config.disksize.size = '50GB'

causes the first partition to be enlarged to 50GB during provisioning.  Combined with an appropriate invocation of resize2fs:

  sudo resize2fs /dev/sda1

so that the filesystem in the partition is resized, the disk space issue seems alleviated.

Issue 3 can be addressed by changing the user from 'ubuntu' to 'vagrant' in the Vagrantfile -- at least that's what worked here.
2018-01-25 22:15:35 +01:00
Fredrik Fornwall c2b0104802 Fix meson patch (fixes #2051) 2018-01-21 20:45:35 +01:00
Fredrik Fornwall 43e8daa888 Update meson version from 0.43.0 to 0.44.0 2018-01-14 22:23:40 +01:00
Fredrik Fornwall 3e36b0e87b Add TERMUX_PKG_REVISION check to lint-packages.py 2017-12-20 00:13:01 +01:00
Fredrik Fornwall 2523abf65c Modify python formatting 2017-12-05 23:30:44 +01:00
Fredrik Fornwall ea61862721 Add scripts/lint-packages.py
Harmonize the layout by having the first two lines of a package
definition always be the homepage and the description.
2017-12-05 22:48:12 +01:00
Fredrik Fornwall dfaf1e308d Improve scripts/list-packages.sh 2017-12-05 22:36:18 +01:00
Fredrik Fornwall dc5259ab1e Slim down the setup created by setup-ubuntu.sh
This changes the docker image size from around 5.8 to 3.6 GB.

For those wanting more tools in the docker build environment sudo
is always available.
2017-11-26 00:43:19 +01:00
Fredrik Fornwall b54c3eb86e Update scripts/Vagrantfile for ubuntu 17.10 2017-11-21 06:05:04 +01:00
Fredrik Fornwall d1776d92e7 Remove NDK gnu-libstdc from the docker image 2017-11-19 14:40:31 +01:00
Fredrik Fornwall b39b311462 Cleanup scripts/buildorder.py 2017-11-19 14:29:49 +01:00
Fredrik Fornwall 0c0af59332 Update NDK used to r16
Run scripts/update-docker.sh to update the docker image.
2017-11-15 16:48:35 +01:00
Fredrik Fornwall e4a9db43b8 Improve check-versions.sh 2017-11-07 04:58:09 +01:00
Fredrik Fornwall 41cc3653aa Enable dependency checks for out-of-tree packages
When building an out-of-tree package, as in
	./build-package.sh path/to/my-package.sh
dependency checks now works.
2017-11-04 01:18:32 +01:00
Fredrik Fornwall ffc53c3978 Update the ubuntu build setup from 17.04 to 17.10
An updated image has been pushed to the docker hub, so update with

./scripts/update-docker.sh
2017-11-02 10:18:05 +01:00
Fredrik Fornwall 45e048f512 Better way of accepting Android SDK licenses 2017-11-02 00:21:36 +01:00
Vladimir Oltean f579fc2f75 buildorder.py: handle the case when more than one dependency type is set (#1555) 2017-09-23 02:55:06 +02:00
Fredrik Fornwall 64666c40b2 Update android platform setup
- Update to build tools 26.0.1.
- Update from android-25 to android-26.
- Add android-16 for use in https://github.com/termux/termux-packages/pull/1133
2017-08-11 14:09:32 +02:00
Henrik Grimler af41dc2143 Enable ghostscript (#1135)
* Fix ghostscript for aarch64.

* ghostscript: fix arm header

* ghostscript: clean build script

* ghostscript: disable i686 and x86_64 for now and enable package!

* Add required build dependencies for ghostscript to setup scripts

* ghostscript: add libexpat as dependency

* ghostscript: add (untested) generated headers for x86_64 and i686
2017-08-11 13:25:55 +02:00
Fredrik Fornwall 6980dd1851 Add basic TERMUX_PKG_BUILD_DEPENDS support 2017-08-08 13:28:52 +02:00
Fredrik Fornwall 24b828afb1 setup-ubuntu.sh: Add g++-multilib
The g++-multilib package is required for nodejs-current on 32-bit
arm and i686 builds.
2017-08-08 13:28:08 +02:00
Fredrik Fornwall 8aa86e32b4 Update from NDK version used from r15b to r15c
The docker image has been updated - run scripts/update-docker.sh
2017-08-07 22:53:43 +02:00
Fredrik Fornwall a13bf95a78 Initial stab at supporting ninja and meson builds
Currently unused.
2017-07-29 02:11:04 +02:00
Fredrik Fornwall b1f17924b7 notmuch: Fix man page generation 2017-07-26 16:13:45 +02:00
Fredrik Fornwall 549dfb1c2c fontconfig: Update from 2.12.0 to 2.12.4 2017-07-26 14:21:12 +02:00
Henrik Grimler 3c634e4903 Docker: login as "builder" even if run-docker.sh is run as root.
Running with sudo otherwise produces debs that normal users don't have
permission to access.
2017-07-22 18:52:08 +02:00
Fredrik Fornwall bf74a80eac run-docker.sh: Work around mac readlink 2017-07-15 11:37:17 +02:00
olg 09c5e72a9a Fix the uid in the docker container, but only when needed and make the bind mount work for arbitrary pwd... 2017-07-15 11:20:05 +02:00
hacknox 3ac5e56343 Use $HOME replace home path 2017-07-15 11:20:05 +02:00
hacknox 36eeaeec1b Fix root user $HOME path 2017-07-15 11:20:05 +02:00
hacknox b21d9e3343 fix docker volume read/write permission 2017-07-15 11:20:05 +02:00
Fredrik Fornwall 369f1e26e3 Do not remove libc++ in Dockerfile setup 2017-07-15 02:25:12 +02:00
Fredrik Fornwall 167405240b Dockerfile: Do not remove non android-21 platforms 2017-07-07 12:23:13 +02:00