diff options
author | cubethethird | 2016-07-27 22:10:24 -0400 |
---|---|---|
committer | cubethethird | 2016-07-27 22:10:24 -0400 |
commit | 6efe1d064b85b4b13a72d6bae04436bed899ec08 (patch) | |
tree | dd21ecdd33068adb155d89231980cce75eae63ce | |
download | aur-6efe1d064b85b4b13a72d6bae04436bed899ec08.tar.gz |
Initial commit for PKGBUILD.
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 64 | ||||
-rw-r--r-- | e4rat-lite-git.install | 39 |
4 files changed, 141 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a1b54874f60c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = e4rat-lite-git + pkgdesc = An improved version of e4rat, a toolset to accelerate the boot process and application startups. + pkgver = 2.7.r87.0881c2e + pkgrel = 1 + url = https://github.com/ShyPixie/e4rat-lite + install = e4rat-lite-git.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = cmake>=2.6 + makedepends = boost + makedepends = perl + depends = linux>=2.6.31 + depends = e2fsprogs>=1.41 + depends = gettext>=0.18 + depends = boost-libs>=1.41 + depends = audit>=0.1.7 + optdepends = bootchart2: A "startup" graphing tool + conflicts = ureadahead + conflicts = e4rat-preload-lite + conflicts = e4rat-preload-lite-git + conflicts = e4rat-lite + backup = etc/e4rat-lite.conf + source = git://github.com/ShyPixie/e4rat-lite.git + source = e4rat-lite-git.install + md5sums = SKIP + md5sums = bac5749143b7b2b04c5386e88c9336f8 + +pkgname = e4rat-lite-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..fc2ad7f8b2d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# source files +*.pkg.tar.xz +pkg/** +src/** +build.sh +test.sh +e4rat-lite/**
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7520e8d48815 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: CubeTheThird <cubethethird@gmail.com> + +pkgname=e4rat-lite-git +_gitname=e4rat-lite +pkgdesc="An improved version of e4rat, a toolset to accelerate the boot process and application startups." +url=https://github.com/ShyPixie/$_gitname +pkgver=2.7.r87.0881c2e +pkgrel=1 + +arch=(i686 x86_64) +license=('GPL3') +depends=('linux>=2.6.31' 'e2fsprogs>=1.41' 'gettext>=0.18' 'boost-libs>=1.41' 'audit>=0.1.7') +makedepends=('git' 'cmake>=2.6' 'boost' 'perl') + +optdepends=('bootchart2: A "startup" graphing tool') + +conflicts=('ureadahead' 'e4rat-preload-lite' 'e4rat-preload-lite-git' 'e4rat-lite') + +source=("git://github.com/ShyPixie/$_gitname.git" + "$pkgname.install") + +md5sums=('SKIP' + 'bac5749143b7b2b04c5386e88c9336f8') + +install=$pkgname.install +backup=('etc/e4rat-lite.conf') + +pkgver() { + cd "$srcdir"/$_gitname + printf "2.7.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir" + + if [ -d "build" ]; then + rm -rf build/* + else + mkdir build + fi +} + +build() { + cd "$srcdir"/build + + cmake "$srcdir"/$_gitname -DCMAKE_BUILD_TYPE=release \ + -DCMAKE_INSTALL_PREFIX="/usr" + + make + + rm -rf "$srcdir"/$_gitname/lib${pkgname}-core.a +} + +package() { + cd "$srcdir/build" + + make DESTDIR="$pkgdir" install + + mkdir -p "$pkgdir/usr/share/doc/${pkgname}/" + mkdir -p "$pkgdir/usr/share/license/${pkgname}/" + + install -m644 "$srcdir"/$_gitname/README* "$pkgdir"/usr/share/doc/${pkgname}/ + install -m644 "$srcdir"/$_gitname/LICENSE* "$pkgdir"/usr/share/license/${pkgname}/ +} diff --git a/e4rat-lite-git.install b/e4rat-lite-git.install new file mode 100644 index 000000000000..e84c59979015 --- /dev/null +++ b/e4rat-lite-git.install @@ -0,0 +1,39 @@ +#conf_file="/etc/e4rat-lite.conf" +#sample_path="/usr/share/e4rat-lite/conf" + +translate_msgs() { + if [ "${1}" == "pt" ]; then + msg_mandb="Atualizando índices, por favor aguarde..." + msg_usefull_1="\nÚtil:\n" + msg_usefull_2="${conf_file}" + msg_usefull_3="Arquivo de configuração.\n" + msg_usefull_4="Se você está usando o systemd, desabilite o" + msg_usefull_5="systemd-readahead-collect e o systemd-readahead-replay." + msg_usefull_6="A implementação do readahead conflita com o e4rat.\n" + else + msg_mandb="Updating indexes, please wait..." + msg_usefull_1="\nUsefull:\n" + msg_usefull_2="${conf_file}" + msg_usefull_3="Configuration file\n" + msg_usefull_4="If are you using systemd, disable the" + msg_usefull_5="systemd-readahead-collect and systemd-readahead-replay." + msg_usefull_6="readahead implementation conflicts with e4rat.\n" + fi +} + +post_install(){ + echo "$msg_mandb" + mandb --quiet /usr/share/man/pt_BR + mandb --quiet /usr/share/man/en_US + echo -e "$msg_usefull_1" + echo "$msg_usefull_2" + echo -e "$msg_usefull_3" + echo "$msg_usefull_4" + echo "$msg_usefull_5" + echo -e "$msg_usefull_6" +} +post_upgrade(){ + post_install +} + +translate_msgs "${LANG%%_*}" |