mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 00:54:37 +08:00
kinky alpha2
This commit is contained in:
parent
addb11ca00
commit
8ff6e7b617
35
kinky/PKGBUILD
Normal file
35
kinky/PKGBUILD
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Maintainer: Radu Andries <admiral0@chakra-project.org>
|
||||||
|
pkgname=kinky
|
||||||
|
pkgver=1.0.0alpha2
|
||||||
|
pkgrel=1
|
||||||
|
epoch=
|
||||||
|
pkgdesc="Builds packages inside chroots"
|
||||||
|
arch=(any)
|
||||||
|
url="http://chakra-project.org/wiki/index.php?title=Kinky"
|
||||||
|
license=('GPL2')
|
||||||
|
groups=('chakra-devel')
|
||||||
|
depends=('python2' 'pacman' 'tar' 'pigz' 'python2-parched' 'python2-decoratortools')
|
||||||
|
source=("https://gitorious.org/chakra-packages/kinky/archive-tarball/kinky-alpha2")
|
||||||
|
md5sums=('b79ab8ebf14a09eb6c2ba2d6c056450c')
|
||||||
|
install=kinky.install
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${srcdir}/chakra-packages-kinky
|
||||||
|
./autogen.sh
|
||||||
|
./configure --prefix=/usr --sysconfdir=/etc
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd ${srcdir}/chakra-packages-kinky
|
||||||
|
make DESTDIR="$pkgdir/" install
|
||||||
|
ln -s chakra-apps-x86_64.cfg $pkgdir/etc/kinky/default.cfg
|
||||||
|
|
||||||
|
# link kinky to consolehelper (deps: usermode)
|
||||||
|
#ln -s consolehelper $pkgdir/usr/bin/kinky
|
||||||
|
|
||||||
|
# create default temporary directories
|
||||||
|
mkdir -p $pkgdir/var/lib/kinky
|
||||||
|
mkdir -p $pkgdir/var/cache/kinky
|
||||||
|
|
||||||
|
}
|
8
kinky/kinky.install
Normal file
8
kinky/kinky.install
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
post_install() {
|
||||||
|
echo "Adding kinky group"
|
||||||
|
getent group kinky > /dev/null || groupadd -f -g 135 -r kinky
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
groupdel kinky
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user