You are not logged in.

#1 2011-09-01 15:27:17

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Install wine to /opt instead of /usr; needed PKGBUILD changes

I have the latest wine installed via multilib with no modifications (installed simply by pacman -S wine). However, this wine does not work with a program I need to have. Wine 1.2 does, and luckily there is a wine-stable in the AUR that is in the 1.2 range. However, one other app I need only works with 1.3, so I have to have both.

The wine-stable package is found here: http://aur.archlinux.org/packages.php?ID=35486

What would I need to change in the PKGBUILD to get it to install wine to /opt instead of /usr? Taking a look, I think in this portion:

msg2 "Building Wine..."

    cd "$srcdir/$pkgname_real-32-build"
    ../$pkgname_real/configure \
      --prefix=/usr \
      --sysconfdir=/etc \
      --with-x

    make
}

I would need to change --prefix=/usr \   to --prefix=/opt \ and in this section:

msg2 "Packaging Wine..."

  cd "$srcdir/$pkgname_real-32-build"
  make prefix="$pkgdir/usr" install
  mkdir -p "$pkgdir/etc/wine"
}

I would need to change the make prefix to $pkgdir/opt

Does this seem right or am I missing something?

Last edited by GSF1200S (2011-09-01 15:28:00)

Offline

#2 2011-09-02 07:08:24

lukaszan
Member
Registered: 2011-05-05
Posts: 117

Re: Install wine to /opt instead of /usr; needed PKGBUILD changes

Sounds about right, although normally in opt you'd have

/opt/package_name/...

I think you should also skip the sysconfdir bit.

Offline

Board footer

Powered by FluxBB