core/kinky/PKGBUILD

37 lines
909 B
Bash
Raw Normal View History

2015-04-28 05:23:08 +08:00
# Maintainer: AlmAck
2013-10-07 05:28:17 +08:00
pkgname=kinky
2015-04-28 05:23:08 +08:00
pkgver=1.2.0
2013-10-07 05:28:17 +08:00
pkgrel=1
pkgdesc="Builds packages inside chroots"
arch=(any)
2015-04-28 05:23:08 +08:00
url="http://chakraos.org/wiki/index.php?title=Kinky"
2013-10-07 05:28:17 +08:00
license=('GPL2')
groups=('chakra-devel')
depends=('python2' 'pacman' 'tar' 'pigz' 'python2-parched' 'python2-decoratortools')
install=kinky.install
2015-04-28 05:23:08 +08:00
gitsha=3caa285
2016-09-24 20:34:42 +08:00
source=("$pkgname"::"git://git.chakralinux.org/${pkgname}.git#commit=${gitsha}")
2015-04-28 05:23:08 +08:00
md5sums=('SKIP')
2013-10-07 05:28:17 +08:00
build() {
2015-04-28 05:23:08 +08:00
cd "${srcdir}/${pkgname}"
2013-10-07 05:28:17 +08:00
./autogen.sh
2015-04-28 05:23:08 +08:00
./configure --prefix=/usr --sysconfdir=/etc
2013-10-07 05:28:17 +08:00
make
}
package() {
2015-04-28 05:23:08 +08:00
cd "${srcdir}/${pkgname}"
2013-10-07 05:28:17 +08:00
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
}