mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 16:44:37 +08:00
35 lines
996 B
Bash
35 lines
996 B
Bash
|
#
|
||
|
# Apps Packages for Chakra, part of chakra-project.org
|
||
|
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
||
|
|
||
|
pkgname=e4rat
|
||
|
pkgver=0.2.2
|
||
|
pkgrel=2
|
||
|
pkgdesc="Toolset to accelerate the boot process and application startups for systems with ext4 root partitions."
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://e4rat.sourceforge.net/"
|
||
|
license=('GPL')
|
||
|
depends=('e2fsprogs' 'util-linux')
|
||
|
makedepends=('audit' 'boost' 'cmake')
|
||
|
options=(!strip)
|
||
|
backup=(etc/e4rat.conf)
|
||
|
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgver/e4rat_${pkgver}_src.tar.gz e4rat-static_core.patch)
|
||
|
md5sums=('dada998e857794dc7f76ffc887e04c19'
|
||
|
'731c5a8a33c323d0cf71616483c37705')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
patch -p0 -i "$srcdir/e4rat-static_core.patch"
|
||
|
|
||
|
unset LDFLAGS
|
||
|
sed -i '/stdlib.h/a #include <unistd.h>' src/fiemap.cc
|
||
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
install -dm755 "$pkgdir/var/lib/$pkgname"
|
||
|
}
|