# $Id: PKGBUILD 106283 2014-02-26 11:56:59Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Jamie Nguyen pkgname=tomoyo-tools _basever=2.5.0 _timestamp=20140105 _file=53357 pkgver=2.5.0.20140105 pkgrel=3 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=('555561e733a530f5514521d45bdbfeec') 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 }