Commit f0e7f8e9 authored by Marcel Huber's avatar Marcel Huber
Browse files

initial build support

parents
Pipeline #523 failed with stage
in 44 seconds
build:
image: marcelhuberfoo/arch-yaourt:latest
stage: build
tags:
- nonzfs
- docker
variables:
NC_VER: 6.0-20170422
LANG: en_US.utf8
LANGUAGE: ''
LC_ALL: ''
script:
- gosu $UNAME bash -c '
count=10;
while test $count -ge 0; do
gpg --keyserver hkps://hkps.pool.sks-keyservers.net:443 --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys C52048C0C0748FEE227D47A2702353E0F7E48EDB && exit 0;
sleep 2;
count=$(($count - 1));
done;
exit 1'
- chmod 1777 /tmp
- gosu $UNAME bash -c -e '
cd /tmp;
n=ncurses5-compat-libs;
( git clone https://aur.archlinux.org/${n}.git $n;
cd $n;
sed -i -r
-e "s|_pkgver=.*|_pkgver=$NC_VER|"
-e "s|build\(\)|prepare()|"
-e "/^\s*make\b\s*\$/ i\ ./configure --help\n}\n\nbuild() {\n cd \${_pkgname}-\${_pkgver}\n"
PKGBUILD;
updpkgsums;
makepkg --syncdeps --noconfirm --nobuild --noextract --noprepare;
makepkg || { cat src/ncurses*/config.log src/ncurses*/config.status; exit 1; };
mv *.pkg.tar.xz $PKG_DIR
mv *.pkg.tar.xz $CI_PROJECT_DIR;
);
rm -rf /tmp/$n'
artifacts:
expire_in: 1 year
paths:
- $CI_PROJECT_DIR/*.pkg.tar.xz
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment