mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
Add PKGBUILD for libarmmem. Optimized memX functions for ARMv6.
This commit is contained in:
parent
b040261c0a
commit
462af5ec2e
3 changed files with 83 additions and 0 deletions
28
aur/arm-mem-git/LICENSE
Normal file
28
aur/arm-mem-git/LICENSE
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) 2013, Raspberry Pi Foundation
|
||||||
|
Copyright (c) 2013, RISC OS Open Ltd
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the copyright holder nor the
|
||||||
|
names of its contributors may be used to endorse or promote products
|
||||||
|
derived from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
39
aur/arm-mem-git/PKGBUILD
Normal file
39
aur/arm-mem-git/PKGBUILD
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
# Maintainer: Jesse Jaara <gmail.com: jesse.jaara>
|
||||||
|
|
||||||
|
pkgname=arm-mem-git
|
||||||
|
pkgver=10.8a1fbee
|
||||||
|
pkgrel=2
|
||||||
|
pkgdesc="ARM-accelerated versions of selected functions from string.h"
|
||||||
|
arch=('armv6h')
|
||||||
|
buildarch=16
|
||||||
|
url="https://github.com/bavison/arm-mem"
|
||||||
|
license=('BSD')
|
||||||
|
makedepends=('git')
|
||||||
|
conflicts=('libcofi_rpi-git')
|
||||||
|
provides=('libcofi_rpi-git')
|
||||||
|
install=arm-mem.install
|
||||||
|
source=('arm-mem::git://github.com/bavison/arm-mem.git'
|
||||||
|
'LICENSE')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "${srcdir}/arm-mem"
|
||||||
|
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/arm-mem"
|
||||||
|
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/arm-mem"
|
||||||
|
|
||||||
|
mkdir -p "${pkgdir}/"{etc/profile.d,usr/lib,usr/share/licenses/arm-mem-git}
|
||||||
|
|
||||||
|
cp "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/arm-mem-git/"
|
||||||
|
cp libarmmem.so "${pkgdir}/usr/lib/"
|
||||||
|
}
|
||||||
|
|
||||||
|
md5sums=('SKIP'
|
||||||
|
'28d63fe2467e38160c025156d21e4e91')
|
16
aur/arm-mem-git/arm-mem.install
Executable file
16
aur/arm-mem-git/arm-mem.install
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
post_install() {
|
||||||
|
echo "/usr/lib/libarmmem.so" >> /etc/ld.so.preload
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
touch /etc/ld.so.preload
|
||||||
|
grep -q "/usr/lib/libarmmem.so" /etc/ld.so.preload
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
post_install
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_remove() {
|
||||||
|
sed '|/usr/lib/libarmmem.so|d' -i /etc/ld.so.preload
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue