Skip to content

Commit 7538b56

Browse files
authored
Merge pull request #7 from igorpecovnik/master
update master 20160630 #2
2 parents 0d1953f + 42339e9 commit 7538b56

File tree

9 files changed

+21
-11
lines changed

9 files changed

+21
-11
lines changed

chroot-buildpackages.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
create_chroot()
1313
{
1414
local target_dir="$1"
15-
debootstrap --variant=buildd --include=ccache,locales,git,ca-certificates,devscripts --arch=$ARCH \
16-
--foreign $RELEASE $target_dir "http://localhost:3142/$APT_MIRROR"
15+
debootstrap --variant=buildd --include=ccache,locales,git,ca-certificates,devscripts,libfile-fcntllock-perl \
16+
--arch=$ARCH --foreign $RELEASE $target_dir "http://localhost:3142/$APT_MIRROR"
1717
[[ $? -ne 0 || ! -f $target_dir/debootstrap/debootstrap ]] && exit_with_error "Create chroot first stage failed"
1818
cp /usr/bin/$QEMU_BINARY $target_dir/usr/bin/
1919
chroot $target_dir /bin/bash -c "/debootstrap/debootstrap --second-stage"
@@ -84,13 +84,17 @@ chroot_build_packages()
8484
[[ -n "$package_builddeps" ]] && /root/install-deps.sh $package_builddeps
8585
cd /root/build
8686
display_alert "Downloading sources"
87-
git clone $package_repo $package_dir ${package_branch:+ -b $package_branch} --single-branch
87+
GIT_EXTRA="--single-branch"
88+
[[ -z "$package_commit" ]] && GIT_EXTRA="\$GIT_EXTRA --depth 1"
89+
[[ -n "$package_branch" ]] && GIT_EXTRA="\$GIT_EXTRA -b $package_branch"
90+
git clone $package_repo $package_dir \$GIT_EXTRA
8891
cd $package_dir
8992
[[ -n "$package_commit" ]] && git checkout -f $package_commit
9093
# unpack debianization files if needed
9194
[[ -n "$package_overlay" ]] && tar xf /root/overlay/$package_overlay -C /root/build/$package_dir
9295
[[ -n "$package_prebuild_eval" ]] && eval "$package_prebuild_eval"
93-
# TODO: increment base version if needed
96+
# set upstream version
97+
[[ -n "$package_upstream_version" ]] && debchange --preserve --newversion "$package_upstream_version" "Import from upstream"
9498
# set local version
9599
debchange -l~armbian${REVISION}+ "New Armbian release"
96100
# build
@@ -116,6 +120,7 @@ chroot_build_packages()
116120
# TODO: move built packages to $DEST/debs/extras
117121
# mv $target_dir/root/build/*.deb $DEST/debs/extras
118122
# cleanup
119-
unset package_name package_repo package_dir package_branch package_overlay package_builddeps package_commit package_install package_prebuild_eval
123+
unset package_name package_repo package_dir package_branch package_overlay package_builddeps package_commit package_install \
124+
package_prebuild_eval package_upstream_version
120125
done
121126
}

configuration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# common options
1313

14-
REVISION="5.14$SUBREVISON" # all boards have same revision
14+
REVISION="5.15$SUBREVISON" # all boards have same revision
1515
ROOTPWD="1234" # Must be changed @first login
1616
MAINTAINER="Igor Pecovnik" # deb signature
1717
MAINTAINERMAIL="igor.pecovnik@****l.com" # deb signature

extras-buildpkgs/00-libdri2.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
local package_name="libDRI2"
33
local package_repo="https://github.com/robclark/libdri2.git"
44
local package_dir="libdri2-1"
5-
local package_branch=""
6-
local package_commit=""
75
local package_overlay="libdri2-1.tar.xz"
86
local package_builddeps="xutils-dev x11proto-xext-dev x11proto-dri2-dev quilt pkg-config libxfixes-dev libxext-dev libdrm-dev dh-autoreconf debhelper"

extras-buildpkgs/06-xf86-video-fbturbo.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
local package_name="xf86-video-fbturbo"
44
local package_repo="https://github.com/ssvb/xf86-video-fbturbo.git"
55
local package_dir="xf86-video-fbturbo"
6-
local package_branch=""
76
local package_builddeps="debhelper dh-autoreconf pkg-config xserver-xorg-dev x11proto-core-dev x11proto-fonts-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev xutils-dev"
87
local package_overlay="xf86-video-fbturbo.tar.xz"
98
local package_install="no"

extras-buildpkgs/ffmpeg.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# FFmpeg
2+
local package_name="FFmpeg"
3+
local package_repo="https://github.com/FFmpeg/FFmpeg.git"
4+
local package_dir="ffmpeg"
5+
local package_branch="release/3.1"
6+
local package_upstream_version="7:3.1.0"
7+
local package_overlay="ffmpeg.tar.xz"
8+
local package_builddeps="dpkg-dev flite1-dev frei0r-plugins-dev ladspa-sdk libass-dev libavc1394-dev libbluray-dev libbs2b-dev libbz2-dev libcaca-dev libcdio-paranoia-dev libdc1394-22-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libgl1-mesa-dev libgme-dev libgnutls28-dev libgsm1-dev libiec61883-dev libjack-jackd2-dev liblzma-dev libmodplug-dev libmp3lame-dev libopenal-dev libopencore-amrnb-dev libopencore-amrwb-dev libopencv-dev libopenjpeg-dev libopus-dev libpulse-dev librtmp-dev libschroedinger-dev libsctp-dev libsdl-dev libshine-dev libsnappy-dev libsoxr-dev libspeex-dev libssh-gcrypt-dev libtheora-dev libtwolame-dev libva-dev libvdpau-dev libvo-aacenc-dev libvo-amrwbenc-dev libvorbis-dev libvpx-dev libwavpack-dev libwebp-dev libx264-dev libx265-dev libxext-dev libxvidcore-dev libxvmc-dev libzmq3-dev libzvbi-dev pkg-config texinfo yasm cleancss doxygen node-less"

extras-buildpkgs/ffmpeg.tar.xz

47.7 KB
Binary file not shown.

extras-buildpkgs/guvcview.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
local package_name="guvcview"
33
local package_repo="https://github.com/avafinger/guvcview.git"
44
local package_dir="guvcview"
5-
local package_branch=""
5+
local package_upstream_version="2.0.2.1"
66
local package_overlay="guvcview.tar.xz"
77
local package_builddeps="intltool dh-autoreconf autotools-dev libsdl1.2-dev libgtk-3-dev portaudio19-dev libpng12-dev libavcodec-dev libavutil-dev libudev-dev libusb-1.0-0-dev libpulse-dev libgsl0-dev libv4l-dev libv4l2rds0 libsdl2-dev"

extras-buildpkgs/hostapd.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ local package_name="hostapd"
33
local package_repo="http://w1.fi/hostap.git"
44
local package_dir="hostapd"
55
local package_branch="hostap_2_5"
6+
local package_upstream_version="2.5"
67
local package_overlay="hostapd.tar.xz"
78
local package_builddeps="debhelper pkg-config libssl-dev libreadline-dev libpcsclite-dev libnl-route-3-dev libnl-genl-3-dev libnl-3-dev libncurses5-dev libdbus-1-dev docbook-utils docbook-to-man"

extras-buildpkgs/sunxi-tools.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
local package_name="sunxi-tools"
33
local package_repo="https://github.com/linux-sunxi/sunxi-tools.git"
44
local package_dir="sunxi-tools"
5-
local package_branch=""
65
local package_overlay="sunxi-tools.tar.xz"
76
local package_builddeps="debhelper libusb-1.0-0-dev ruby binutils-arm-none-eabi pkg-config u-boot-tools"

0 commit comments

Comments
 (0)