Sören Tempel
4bfb5c8fc1
newapkbuild: redirect find(1) stderr to /dev/null
...
If $sdir is not defined find writes an error message to stderr. For
example when running:
newapkbuild -n foo -a foo
You will see a find error message because no source url was provided.
This commit silences any find error message. An alternative solution
would be to not invoke find unless $sdir is set.
2016-06-20 11:15:42 +02:00
Jakub Jirutka
8919e1eee8
newapkbuild: remove trailing spaces
2016-06-13 22:49:27 +02:00
Jakub Jirutka
1647fef93a
newapkbuild: add empty line after builddir= and quote whole value
2016-06-13 22:43:27 +02:00
Jakub Jirutka
a3ce23dd53
newapkbuild: omit depends_dev if no *.h or *.hpp file found
2016-06-13 12:37:20 +00:00
Jakub Jirutka
630c244cfe
newapkbuild: fix undefined variable $_builddir
2016-06-13 12:37:20 +00:00
Natanael Copa
270e5337e7
newapkbuild: rename _builddir to builddir
...
the _builddir should never been used bu abuild due to the _ prefix.
2016-03-23 10:08:00 +00:00
Michael Zuo
d1ab7ed40f
newapkbuild: remove default prepare()
...
Do not add prepare() to new APKBUILDs in the future, as this
functionality is superseded by the addition of the default prepare
patcher in abuild.
2016-02-22 14:05:25 +02:00
Natanael Copa
d9eba16d35
newapkbuild: dont set CXX/C COMPILER
...
cmake is normally able to figure it out and setting them may break
ccache.
2015-11-30 07:26:56 +00:00
Natanael Copa
8638dacee0
newapkbuild: do not add --infodir
...
normally not used
2015-11-30 07:26:56 +00:00
Bartłomiej Piotrowski
e1d64f4b0e
newapkbuild: *.la files are removed by default
2015-09-15 20:58:46 +02:00
Isaac Dunham
582b477817
newapkbuild: add CMake support.
...
This is a first try that *might* work for cross-compiling packages with
an absolute bare minimum of requirements, if you're lucky.
I can't debug that part further, but the references should help with it.
2015-05-27 07:03:35 +00:00
Natanael Copa
ad9db219b8
fix permissions
2014-03-31 11:49:48 +00:00
Natanael Copa
60dda6785f
newapkbuild: detect github archives
2013-11-21 09:21:50 +00:00
Natanael Copa
beb15ad8ba
newapkbuild: cosmetic fix for help message
2013-10-25 08:14:10 +00:00
Natanael Copa
4757588caf
functions: rename abuild_ver to program_version
2013-10-25 07:26:22 +00:00
Natanael Copa
1822f3f624
functions: rename prog to program
2013-10-25 07:24:46 +00:00
Natanael Copa
6a0db56693
newapkbuild: add --build and --host options
2013-08-01 12:32:27 +00:00
Dubiousjim
ef9fb52908
various: use long options, rework usages
2013-07-09 06:59:30 +00:00
Dubiousjim
db1314ac55
various: move conf-loading and i/o to functions
2013-07-09 06:44:01 +00:00
Dubiousjim
811a215018
various: tweak opening comments, whitespace
...
Also remove incomplete efforts at listing "Depends on: ..."
2013-07-08 14:49:36 +00:00
Natanael Copa
e23f733ad9
newapkbuild: https is also an url
2013-02-20 09:56:24 +00:00
Natanael Copa
bdace10aa6
newapkbuild: add -n option for setting name
...
So we can set pkgname if it differs from download archive name
2011-12-21 16:57:09 +01:00
Natanael Copa
9947fdfafa
newapkbuild: use -y for python instead of -q
2011-06-28 07:21:36 +00:00
Natanael Copa
15718f9cf9
newapkbuild: build and package sections for 'make' buildtype
...
This buildtype is when there is a simple Makefile only.
2011-06-28 07:20:11 +00:00
Natanael Copa
91c0772347
newapkbuild: not only autotools packages can have init.d scripts
2011-06-28 07:14:02 +00:00
Natanael Copa
b0b66ea098
newapkbuild: rename config_* functions to build_*
...
We call make as well as needed so build_* is better function name.
2011-06-28 07:11:02 +00:00
Fabian Affolter
50dd6eab65
Added python as a new template
...
With -q ('-q' for the moment, please change that) a template
APKBUILD file for a python module is created. 'depends' and
'makedepends' are filled with standard values.
2011-06-28 07:02:36 +00:00
Natanael Copa
ac830aeb87
newapkbuild: fix previous commit
2011-06-06 08:28:31 +00:00
Natanael Copa
a94ef4776a
newapkbuild: remove libtool archives
2011-06-03 14:20:08 +00:00
Natanael Copa
50cfdd620a
newapkbuild: assume perl package if package name starts with perl-
2011-03-17 10:51:07 +00:00
Natanael Copa
b581f87e85
newapkbuild: supporrt for forcing autotools or perl with -a -p
2011-03-17 10:47:12 +00:00
Natanael Copa
f20d7983ae
newapkbuild: support for creating sourceforge source urls
2011-03-17 10:20:57 +00:00
Natanael Copa
b2cfa97c87
newapkbuild: add the missing cd "$_builddir"
2011-03-09 11:52:28 +00:00
Natanael Copa
1fb46b92aa
newapkbuild: rework
...
Download the sourcepackage and analyze. If needed, have build()
run ./configure.
We could in future try figure out license automatically too.
2011-01-03 13:41:33 +00:00
Natanael Copa
9aeef85a03
newapkbuild: source PACKAGER from abuild.conf
2010-11-19 09:51:36 +00:00
Natanael Copa
b6dbb5afed
newapkbuild: minor bugfix in is_uri()
2010-07-07 18:27:09 +00:00
Natanael Copa
991652c96c
newapkbuid: fix pkgver in source
2010-06-16 14:00:34 +00:00
Natanael Copa
a57baec7cc
newapkbuild: support for creating new from http source
...
newapkbuild http://example.com/path/foo-1.0.tar.gz
will set
pkgname=foo
pkgver=1.0
source="http://example.com/path/foo-1.0.tar.gz "
2010-05-29 18:39:16 +00:00
Natanael Copa
c9616e9d9e
newapkbuild: move code from abuild to new script
...
try keep code in abuild cleaner by moving out creation of new apkbuild
to separate script.
2009-10-24 20:03:06 +00:00