2021-12-03 10:17:40 -05:00
|
|
|
FROM archlinux/latest
|
2019-06-04 07:45:17 -04:00
|
|
|
|
|
|
|
RUN pacman -Syu --noconfirm && pacman -S --needed --noconfirm \
|
|
|
|
autoconf \
|
|
|
|
autoconf-archive \
|
|
|
|
automake \
|
|
|
|
base-devel \
|
|
|
|
check \
|
|
|
|
cmake \
|
|
|
|
cmocka \
|
|
|
|
curl \
|
|
|
|
doxygen \
|
|
|
|
expat \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
gpgme \
|
|
|
|
gtk2 \
|
|
|
|
libgcrypt \
|
|
|
|
libmicrohttpd \
|
|
|
|
libnotify \
|
|
|
|
libotr \
|
|
|
|
libtool \
|
|
|
|
libxss \
|
|
|
|
make \
|
|
|
|
openssl \
|
|
|
|
pkg-config \
|
|
|
|
python \
|
2020-03-23 06:24:57 -04:00
|
|
|
wget \
|
|
|
|
sqlite
|
2019-06-04 07:45:17 -04:00
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/{stabber,profanity}
|
|
|
|
|
|
|
|
RUN useradd -mb /usr/src --shell=/bin/false aur && usermod -L aur
|
|
|
|
USER aur
|
|
|
|
|
|
|
|
WORKDIR /usr/src/aur
|
2020-07-20 04:52:12 -04:00
|
|
|
|
|
|
|
# NOTE: These will change their extension to .tar.zst if a new snapshot is built
|
|
|
|
# due to:
|
|
|
|
# https://www.archlinux.org/news/now-using-zstandard-instead-of-xz-for-package-compression/
|
2019-06-04 07:45:17 -04:00
|
|
|
RUN wget https://aur.archlinux.org/cgit/aur.git/snapshot/libstrophe-git.tar.gz
|
|
|
|
RUN wget https://aur.archlinux.org/cgit/aur.git/snapshot/libsignal-protocol-c.tar.gz
|
2020-07-20 04:52:12 -04:00
|
|
|
|
2019-06-04 07:45:17 -04:00
|
|
|
RUN tar -zxvf libstrophe-git.tar.gz
|
|
|
|
RUN tar -zxvf libsignal-protocol-c.tar.gz
|
2020-07-20 04:52:12 -04:00
|
|
|
|
2019-06-04 07:45:17 -04:00
|
|
|
RUN pushd libstrophe-git && makepkg && popd
|
|
|
|
RUN pushd libsignal-protocol-c && makepkg && popd
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
2020-07-20 04:52:12 -04:00
|
|
|
RUN pacman -U --noconfirm libstrophe-git/libstrophe-git-*.pkg.tar.zst
|
|
|
|
RUN pacman -U --noconfirm libsignal-protocol-c/libsignal-protocol-c-*.pkg.tar.zst
|
2019-06-04 07:45:17 -04:00
|
|
|
|
|
|
|
WORKDIR /usr/src
|
2022-01-12 10:54:43 -05:00
|
|
|
#RUN git clone https://github.com/boothj5/stabber
|
2019-06-04 07:45:17 -04:00
|
|
|
|
2022-01-12 10:54:43 -05:00
|
|
|
#WORKDIR /usr/src/stabber
|
|
|
|
#RUN ./bootstrap.sh
|
|
|
|
#RUN ./configure --prefix=/usr --disable-dependency-tracking
|
|
|
|
#RUN make
|
|
|
|
#RUN make install
|
2019-06-04 07:45:17 -04:00
|
|
|
|
|
|
|
WORKDIR /usr/src/profanity
|
|
|
|
COPY . /usr/src/profanity
|