Commit 37297cb9 authored by AlmAck's avatar AlmAck

Merge branch 'testing' of code.chakralinux.org:chakra/packages/core into testing

parents 11d2ee27 d9f49e93
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Drake Justice <djustice[at]chakra-project[dot]org>
pkgname=abs
pkgver=2.4.3
pkgrel=1
pkgdesc="Utilities to download and work with the Arch Build System (ABS)"
arch=('i686' 'x86_64')
url="http://projects.archlinux.org/abs.git/"
license=('GPL')
depends=('bash' 'rsync')
backup=(etc/abs.conf)
install=abs.install
source=(ftp://ftp.archlinux.org/other/abs/${pkgname}-${pkgver}.tar.gz
http://chakra-linux.org/sources/abs/abs-chakra)
md5sums=('b8b46b22d2f9a2aec2c994ccf230b4fd'
'6f2b27558960b355979f358f35772db4')
build() {
cd ${srcdir}/${pkgname}
make CONFDIR=/etc/
make CONFDIR=/etc/ DESTDIR=${pkgdir} install
# Add readme file, and make base /var/abs path
install -dm0755 ${pkgdir}/var/abs/local/
install -Dm0644 ${srcdir}/abs/README ${pkgdir}/var/abs/README
# make adjustments to abs.conf
if [[ $CARCH = "i686" ]]; then
sed -i -e 's| multilib||' -e 's| !multilib-testing||' ${pkgdir}/etc/abs.conf
fi
if [[ $CARCH = "x86_64" ]]; then
sed -i '/ARCH=/s|i686|x86_64|' ${pkgdir}/etc/abs.conf
fi
cp -f "${srcdir}/abs-chakra" "${pkgdir}/usr/bin/abs"
}
pre_upgrade() {
if [ "$(vercmp $2 2.3.2-1)" -lt 0 ]; then
echo "==> Fixing potential ABS tree permission issues (this may take a while...)"
for dir in core extra community testing; do
if [ -d /var/abs/$dir ]; then
find /var/abs/$dir -type d -exec chown root:root {} \;
find /var/abs/$dir -type d -exec chmod 755 {} \;
fi
done
fi
}
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=attica
pkgver=0.2.0
pkgrel=1
pkgdesc='A library to access Open Collaboration Service providers'
arch=('i686' 'x86_64')
url='http://www.kde.org'
license=('LGPL')
depends=('qt')
makedepends=('cmake')
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('df3dcea0229cfa31539bdd427976e15b')
build() {
cd ${srcdir}
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON
make || return 1
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
}
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=autoconf2.13
pkgver=2.13
pkgrel=2
pkgrel=3
pkgdesc="A GNU tool for automatically configuring source code (Legacy 2.1x version)"
arch=(any)
url="http://www.gnu.org/software/autoconf/"
license=('GPL2')
depends=('perl')
install=autoconf.install
source=("http://ftpmirror.gnu.org/autoconf/autoconf-${pkgver}.tar.gz")
source=("https://ftpmirror.gnu.org/autoconf/autoconf-${pkgver}.tar.gz")
md5sums=('9de56d4a161a723228220b0f425dc711')
build() {
cd "$srcdir/autoconf-${pkgver}"
./configure --prefix=/usr --infodir=/usr/share/info --program-suffix=-2.13 || return 1
make || return 1
make prefix="${pkgdir}/usr" infodir="${pkgdir}/usr/share/info" install || return 1
./configure --prefix=/usr --infodir=/usr/share/info --program-suffix=-2.13
make
}
package() {
cd "${srcdir}/autoconf-${pkgver}"
make prefix="${pkgdir}/usr" infodir="${pkgdir}/usr/share/info" install
mv "${pkgdir}"/usr/share/info/autoconf{,-2.13}.info
mv "${pkgdir}"/usr/share/info/standards{,-2.13}.info
}
infodir=/usr/share/info
filelist=(autoconf-2.13.info standards-2.13.info)
post_install() {
for file in ${filelist[@]}; do
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
for file in ${filelist[@]}; do
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et:
pkgname=avr-libc
pkgver=1.7.1
pkgrel=1
pkgdesc="The C runtime library for the AVR family of microcontrollers"
arch=('any')
url="http://savannah.nongnu.org/projects/avr-libc/"
license=('custom')
depends=('gcc-avr')
source=(http://savannah.nongnu.org/download/avr-libc/${pkgname}-${pkgver}.tar.bz2)
md5sums=('8608061dcff075d44d5c59cb7b6a6f39')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --build=$(./config.guess) --host=avr --prefix=/usr
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}
pkgname=avrdude
pkgver=5.10
pkgrel=1
pkgdesc="Download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers"
arch=('i686' 'x86_64')
url="http://www.nongnu.org/avrdude/"
license=('GPL')
depends=('libusb-compat' 'readline')
source=(http://download.savannah.gnu.org/releases/avrdude/${pkgname}-${pkgver}.tar.gz)
md5sums=('69b082683047e054348088fd63bad2ff')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --mandir=/usr/share/man --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}
\ No newline at end of file
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
pkgname=bdw-gc
pkgver=7.1
pkgrel=1
pkgdesc="BDW-GC is a garbage collection library."
url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
arch=(i686 x86_64)
license=('Unknown')
depends=()
source=(http://hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-${pkgver}.tar.gz)
md5sums=('2ff9924c7249ef7f736ecfe6f08f3f9b')
build() {
cd "${srcdir}/gc-${pkgver}"
./configure --prefix=/usr
make LDFLAGS+="-lpthread"
make DESTDIR="${pkgdir}" install
}
pkgname=binutils-avr
pkgver=2.21.1
pkgrel=1
pkgdesc="A set of programs to assemble and manipulate binary and object files for the avr architecture"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
depends=('glibc>=2.12.1-5' 'zlib')
options=('!libtool' '!distcc' '!ccache')
source=(http://ftp.gnu.org/gnu/${pkgname/-avr}/${pkgname/-avr}-${pkgver}.tar.bz2)
md5sums=('a22801a9cad45c85e9ff6afc10537d72')
build() {
cd ${srcdir}/${pkgname/-avr}-${pkgver}
mkdir build
cd build
CC="gcc -L$(pwd)/bfd/.libs/"
if [ "${CARCH}" = "x86_64" ]; then
../configure --build=$(../config.guess) \
--disable-multilib \
--disable-nls \
--enable-64-bit-bfd \
--enable-install-libbfd \
--includedir=/usr/$(../config.guess)/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--prefix=/usr \
--target=avr
else
../configure --build=$(../config.guess) \
--disable-nls \
--enable-install-libbfd \
--includedir=/usr/$(../config.guess)/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--prefix=/usr \
--target=avr
fi
# This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
make configure-host
make tooldir=/usr
}
package() {
cd ${srcdir}/${pkgname/-avr}-${pkgver}
cd build
make DESTDIR=${pkgdir} tooldir=/usr install
rm -f ${pkgdir}/usr/lib/libiberty.a
for bin in addr2line ar as c++filt gprof ld nm objcopy objdump ranlib readelf size strings strip ; do
rm -f ${pkgdir}/usr/bin/${bin} || return 1
done
for info in as bfd binutils configure gprof ld standards; do
mv ${pkgdir}/usr/share/info/${info}.info ${pkgdir}/usr/share/info/avr-${info}.info
done
}
#! /bin/sh -e
########################################################
# This script generates a memtest86+ entry on grub.cfg #
# if memtest is installed on the system. #
########################################################
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/burg/burg-mkconfig_lib
MEMTEST86_IMAGE="/boot/memtest86+/memtest.bin"
CLASS="--class memtest86 --class gnu --class tool"
if [ -e $MEMTEST86_IMAGE ] && is_path_readable_by_grub $MEMTEST86_IMAGE; then
# image exists, create menu entry
echo "Found memtest86+ image: $MEMTEST86_IMAGE" >&2
cat << EOF
menuentry "Memory test (memtest86+)" $CLASS {
EOF
prepare_grub_to_access_device `${grub_probe} --target=device $MEMTEST86_IMAGE` | sed -e "s/^/ /"
cat << EOF
linux16 (\$root)`make_system_path_relative_to_its_root $MEMTEST86_IMAGE`
}
EOF
fi
echo "Unmaintained by upstream; we don't use it anymore"
exit; # aborts makepkg
#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dot]org
# maintainer (x86_64): Giuseppe Calà <jiveaxe[at]gmail[dot]com>
# Tunables: change y to n to disable
_rm_build_dirs="${_rm_build_dirs:-n}" # remove build directories
_mk_burg_emu="${_mk_burg_emu:-n}" # enable burg emu
pkgname=burg-bzr
pkgver=1844
pkgrel=8
url="https://launchpad.net/burg"
license="GPL3"
arch=('i686' 'x86_64')
if [ "$CARCH" = "i686" ]; then
depends=('freetype2')
pkgdesc="Brand-new Universal loadeR from GRUB2 - Built for i386 BIOS"
fi
if [ "$CARCH" = "x86_64" ]; then
depends=('gettext' 'freetype2' 'dosfstools' 'efibootmgr')
pkgdesc="Brand-new Universal loadeR from GRUB2 - Built for x86_64 UEFI"
fi
optdepends=('os-prober' 'memtest86+' 'mtools')
makedepends=('bzr' 'ruby' 'bdf-unifont' 'python2' 'ncurses' 'sdl')
changelog=burg.changelog
backup=('etc/default/burg' 'etc/burg.d/40_custom')
provides=('burg')
if [[ "${_mk_burg_emu}" == 'y' ]]; then
makedepends+=('sdl')
depends+=('sdl')
conflicts+=('burg-emu')
provides+=('burg-emu')
fi
md5sums=('39a0e3f1035342d75a9eda7a65f9793f'
'743c7f6cec624bf0c696dae83b6e4d06'
'60bdcc9a3f86deb4f1a361f3bea4ae98'
'990eba4f3cb1808c97c2972de6957a3c'
'460a91c0998117285decdb176ad98ee1')
source=('burg.default'
'chakra-burg.patch'
'resume-hook.patch'
'20_memtest86+'
'update-burg')
install='burg.install'
_bzrmod="burg"
_bzrtrunk="lp:${_bzrmod}"
_builddir="${_bzrmod}-build"
_builddir_emu="${_bzrmod}-emu-build"
_common_configure_opts="--host="${CARCH}-pc-linux-gnu" --program-prefix="" \
--prefix=/usr --bindir=/bin \
--sbindir=/sbin --mandir=/usr/share/man \
--infodir=/usr/share/info --sysconfdir=/etc \
--disable-werror"
_update_bzr() {
cd "${srcdir}/"
msg "Connecting to the server...."
if [[ ! -d "${srcdir}/${_bzrmod}" ]] ; then
bzr branch "${_bzrtrunk}"
else
cd "${srcdir}/${_bzrmod}" && bzr pull "${_bzrtrunk}"
fi
msg "BZR checkout done or server timeout"
}
_build_dir() {
local _rm_builddir='0'
while (( "$#" ))
do
local _check="$1"
if [[ "${_check}" == '-r' ]]; then
_rm_builddir='1'
elif [[ "${_check}" == 'emu' ]]; then
_builddir="${_bzrmod}-build"
_builddir_emu="${_bzrmod}-emu-build"
else
_builddir="${_bzrmod}-$1-build"
fi
shift
done
if [[ "${_check}" == 'emu' ]]; then
rm -rf "${srcdir}/${_builddir_emu}" || true
else
rm -rf "${srcdir}/${_builddir}" || true
fi
if [[ "${_rm_builddir}" == '0' ]]; then
if [[ "${_check}" == 'emu' ]]; then
cp -rip "${srcdir}/${_bzrmod}" "${srcdir}/${_builddir_emu}"
cd "${srcdir}/${_builddir_emu}"
else
cp -rip "${srcdir}/${_bzrmod}" "${srcdir}/${_builddir}"
cd "${srcdir}/${_builddir}/"
fi
fi
}
_build_common() {
local _check="$1"
if [[ "${_check}" == 'emu' ]]; then
cd "${srcdir}/${_builddir_emu}"
else
cd "${srcdir}/${_builddir}"
fi
# Archlinux changed default python to python3, need to use /usr/bin/python2 instead
sed 's|python|python2|g' -i ./autogen.sh || true
echo
./autogen.sh
echo
}
_build_bios() {
msg "Building burg bios...."
_build_dir
echo
# some random patches to facilitate automatic creation of burg.cfg
patch -Np1 -i "${srcdir}/chakra-burg.patch"
echo
_build_common
echo
cd "${srcdir}/${_builddir}/"
## fix unifont.bdf location so burg-mkfont can create *.pf2 files
sed 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|g' -i ./configure || true
_bios_configure_opts="${_common_configure_opts} --with-platform=pc --disable-grub-emu-usb"
./configure ${_bios_configure_opts}
echo
CFLAGS="" make
echo
}
_build_uefi_x86_64() {
msg "Building burg uefi x86_64...."
_build_dir
echo
# some random patches to facilitate automatic creation of burg.cfg
patch -Np1 -i "${srcdir}/chakra-burg.patch"
echo
_build_common
echo
cd "${srcdir}/${_builddir}/"
## fix unifont.bdf location so burg-mkfont can create *.pf2 files
sed 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|g' -i ./configure || true
_uefi_configure_opts="${_common_configure_opts} --with-platform=efi --target=x86_64 --disable-efiemu --disable-grub-emu-usb"
./configure ${_uefi_configure_opts}
echo
CFLAGS="" make
echo
}
_build_emu() {
msg "Building burg-emu...."
_build_dir emu
echo
_build_common emu
echo
cd "${srcdir}/${_builddir_emu}/"
## fix unifont.bdf location so burg-mkfont can create *.pf2 files
sed 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|g' -i ./configure || true
_emu_configure_opts="${_common_configure_opts} --with-platform=emu --disable-grub-emu-usb"
./configure ${_emu_configure_opts}
echo
CFLAGS="" make
echo
}
build() {
_update_bzr
echo
if [[ "$CARCH" == 'i686' ]]; then
_build_bios
fi
echo
if [[ "$CARCH" == 'x86_64' ]]; then
_build_uefi_x86_64
fi
echo
if [[ "${_mk_burg_emu}" == 'y' ]]; then
_build_emu
fi
echo
}
package() {
cd "${srcdir}/${_builddir}/"
make DESTDIR="${pkgdir}/" install
echo
if [[ "${_mk_burg_emu}" == 'y' ]]; then
install -D -m0755 "${srcdir}/${_builddir_emu}/grub-emu" "${pkgdir}/bin/burg-emu"
fi
# install /etc/default/burg(needed config file)
install -D -m0644 "${srcdir}/burg.default" "${pkgdir}/etc/default/burg"
# install update-burg script
install -D -m0755 "${srcdir}/update-burg" "${pkgdir}/sbin/update-burg"
# install memtest config detection
install -D -m0755 "${srcdir}/20_memtest86+" "${pkgdir}/etc/burg.d/20_memtest86+"
if [[ "${_rm_build_dirs}" == 'y' ]]; then
_build_dir -r
if [[ "${_mk_burg_emu}" == 'y' ]]; then
_build_dir -r emu
fi
fi
echo
cd ${pkgdir}/sbin
patch -Np0 -i ${srcdir}/resume-hook.patch
}