# $Id: PKGBUILD 92639 2013-06-10 09:54:10Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Jamie Nguyen pkgname=tomoyo-tools _basever=2.5.0 _timestamp=20130406 _file=53357 pkgver=${_basever}.${_timestamp} pkgrel=1 pkgdesc='TOMOYO Linux userspace tools for Linux kernels >=3.2' arch=('i686' 'x86_64') url='http://tomoyo.sourceforge.jp' #url='http://sourceforge.jp/projects/tomoyo/releases/?package_id=9818' license=('GPL') depends=('ncurses' 'linux>=3.2') install=tomoyo-tools.install source=("http://sourceforge.jp/frs/redir.php?f=/tomoyo/${_file}/${pkgname}-${_basever}-${_timestamp}.tar.gz") md5sums=('8888f83fcb87823d714ff551e8680d0d') prepare() { cd "${srcdir}/${pkgname}" sed -i \ -e 's|usr/sbin|usr/bin|g' \ -e 's|sbin|usr/bin|g' \ usr_lib_tomoyo/init_policy.c } build() { cd "${srcdir}/${pkgname}" make USRSBINDIR=/usr/bin SBINDIR=/usr/bin } package() { cd "${srcdir}/${pkgname}" make USRSBINDIR=/usr/bin SBINDIR=/usr/bin INSTALLDIR="${pkgdir}" install }