updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / atlas / PKGBUILD
blob156c53498e01049a41e407b17311f499bd7470bd
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Your Name <youremail@domain.com>
7 pkgname=atlas
8 pkgver=1
9 pkgrel=1
10 pkgdesc="Advanced Tools and Languages for Microcomputer Architecture Simulation (ATLAS)"
11 arch=(x86_64 i686)
12 url="http://staticweb.rasip.fer.hr/research/atlas"
13 license=('custom')
15 if [ "$CARCH" = "x86_64" ]; then
16   depends=(lib32-libxaw)
17 else
18   depends=(libxaw)
19 fi;
21 install=ld.install
22 source=("http://staticweb.rasip.fer.hr/research/atlas/download/linux/atlas-linux.tar.gz")
24 build() {
25   cd "$srcdir/atlas"
26   
27   find . -exec sed -i 's|/usr/local/lib/atlas/lib/|/usr/local/lib/|g' '{}' &> /dev/null \;
30 package() {
31   cd "$srcdir/atlas"
32     
33   install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
34   find . -maxdepth 1 ! -type d -exec rm '{}' \;
36   [ -d "$pkgdir/usr/local" ] || mkdir -p "$pkgdir/usr/local";
37   mv * "$pkgdir/usr/local/";
39   [ -d "$pkgdir/etc/ld.so.conf.d" ] || mkdir -p "$pkgdir/etc/ld.so.conf.d/";
40   echo "/usr/local/lib" > "$pkgdir/etc/ld.so.conf.d/atlas.conf"
41   echo "/usr/lib" >> "$pkgdir/etc/ld.so.conf.d/atlas.conf"
44 # vim:set ts=2 sw=2 et:
45 md5sums=('3434583493bf84d87a6781dac24fef36')