mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 18:42:14 +08:00
49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
#
|
|
# Chakra 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>
|
|
|
|
pkgbase=chakra-live
|
|
pkgname=('chakra-live' 'chakra-live-profiles')
|
|
pkgver=2011.04
|
|
pkgrel=2
|
|
arch=('any')
|
|
url="https://gitorious.org/chakra/chakra-live"
|
|
license=('GPL')
|
|
makedepends=('git')
|
|
provides=()
|
|
conflicts=()
|
|
source=(http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}-${pkgrel}.tar.xz)
|
|
md5sums=(8d778c291e2e76d652a0744447fec455)
|
|
|
|
# create tarball: source PKGBUILD && mksource
|
|
|
|
mksource() {
|
|
rm -vRf ${pkgname}
|
|
git clone git://gitorious.org/chakra/${pkgname}.git
|
|
rm -vRf ${pkgname}/.git
|
|
pushd ${pkgname}
|
|
popd
|
|
tar -cvJf ${pkgname}-${pkgver}-${pkgrel}.tar.xz ${pkgname}/*
|
|
md5sum ${pkgname}-${pkgver}-${pkgrel}.tar.xz
|
|
}
|
|
|
|
package_chakra-live() {
|
|
pkgdesc="Chakra GNU/Linux livecd/liveusb generation scripts"
|
|
depends=('mkinitcpio' 'mkinitcpio-nfs-utils' 'nbd' 'cdrkit' 'squashfs-tools' 'syslinux')
|
|
optdepends=('qemu: quickly test isos' 'chakra-live-profiles: Chakra GNU/Linux ISO-Image profiles')
|
|
cd ${srcdir}/${pkgbase}/chakra-iso
|
|
sed -ie s'~install -d -m 755 $(DESTDIR)/usr/share/chakraiso/~~'g Makefile
|
|
sed -ie s'~cp -r ../configs $(DESTDIR)/usr/share/chakraiso/configs~~'g Makefile
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
package_chakra-live-profiles() {
|
|
pkgdesc="Chakra-Live Profiles"
|
|
depends=('chakra-live')
|
|
cd ${srcdir}/${pkgbase}/
|
|
mkdir -p $pkgdir/usr/share/chakraiso/
|
|
cp -r configs $pkgdir/usr/share/chakraiso/configs
|
|
}
|