Last active
May 23, 2017 21:35
-
-
Save DavidHamburg/cd496a48f63c00a88c5279263a1050cc to your computer and use it in GitHub Desktop.
Arch Container to test PKGBUILD installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dock0/full_arch:latest | |
RUN yes "" | pacman -S base-devel | |
ADD https://gist.githubusercontent.com/0x414c/061183b58167c49e11ff3b1fcfe11fe1/raw/5aafb9464734fef8fe95117c0e16501b15f904e2/makepkg-unsafe.sh /build/makepkg.sh | |
RUN chmod +x /build/makepkg.sh | |
WORKDIR /build | |
COPY PKGBUILD /build/PKGBUILD | |
RUN ./makepkg.sh -s --noconfirm | |
RUN ./makepkg.sh -i --noconfirm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: David Nerjes <[email protected]> | |
# original package: | |
# Maintainer: Jameson Pugh <[email protected]> | |
# Contributor: Daniel Landau <[email protected]> | |
# Contributor: Maxqia <[email protected]> | |
# The following people have contributed to keepassx-git package | |
# Contributor: Lev Lybin <[email protected]> | |
# Contributor: Jamie Macdonald <[email protected]> | |
# Contributor: Alucryd <alucryd at gmail dot com> | |
# Contributor: Paolo Stivanin <admin at polslinux dot it> | |
_pkgname=keepassxc-gpg-git | |
pkgname=keepassxc-gpg-git | |
pkgver=2.2 | |
pkgrel=3 | |
pkgdesc="keepassxc with gpg and yubikey challange response feature enabled" | |
arch=('x86_64') | |
url="https://keepassxc.org" | |
license=('GPL2') | |
depends=(libxtst yubikey-personalization hicolor-icon-theme qt5-x11extras qgpgme) | |
makedepends=(cmake qt5-base git yubikey-personalization hicolor-icon-theme qt5-x11extras qt5-tools qgpgme) | |
conflicts=('keepassxc') | |
provides=('${pkgname%-git}') | |
source=("git+https://github.com/DavidHamburg/keepassxc.git#commit=94ba27cd00d7cb3052450c0ba607d2b717f2aa24") | |
sha256sums=('SKIP') | |
#validpgpkeys=('BF5A669F2272CF4324C1FDA8CFB4C2166397D0D2') # KeePassXC Release <[email protected]> | |
prepare() { | |
cd "$srcdir/keepassxc" | |
#cd "$srcdir/${_pkgname}-${pkgver}" | |
#sed -i '/git/d' src/CMakeLists.txt | |
mkdir -p build | |
} | |
build() { | |
cd "$srcdir/keepassxc/build" | |
cmake -DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_INSTALL_BINDIR=/usr/bin \ | |
-DCMAKE_INSTALL_LIBDIR=/usr/lib \ | |
-DCMAKE_VERBOSE_MAKEFILE=OFF \ | |
-DWITH_GUI_TESTS=OFF \ | |
-DWITH_XC_AUTOTYPE=ON \ | |
-DWITH_XC_HTTP=OFF \ | |
-DWITH_XC_YUBIKEY=ON \ | |
-DWITH_XC_GPG=ON \ | |
-DCMAKE_BUILD_TYPE=Release .. | |
make -j8 | |
} | |
check() { | |
cd "$srcdir/keepassxc/build" | |
make test | |
} | |
package() { | |
cd "$srcdir/keepassxc/build" | |
make DESTDIR="${pkgdir}" install | |
} | |
# vim: set ts=2 sw=2 ft=sh noet: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment