updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / ucon64 / PKGBUILD
blobe200ef2effb04bf0c324cb5a7c63119d14015fd7
1 # Contributor: robb_force <robb_force@holybuffalo.net>
2 pkgname=ucon64
3 pkgver=2.0.0
4 pkgrel=2
5 pkgdesc="A rom backup and management tool for nearly any console including support for flash and memory card writers."
6 url="http://ucon64.sourceforge.net/index.php"
7 license="GPL"
8 arch=('i686' 'x86_64')
9 depends=('zlib')
10 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-src.tar.gz \
11   ucon64.sh)
12 md5sums=('33804256edb265d43bc3dbb9ada4441a'
13          '2f8a725346f38a9b9791932477a4085a')
15 build() {
16   cd ${startdir}/src/${pkgname}-${pkgver}-src/src
17   ./configure --prefix=/usr
18   make || return 1
20   # Install the script that will check for ucon64 in the user folder
21   # and create one if it is not found or run ucon64.
22   install -D -m755 ${startdir}/src/ucon64.sh ${startdir}/pkg/usr/bin/ucon64
24   # Install ucon64 and the discmage library in /usr/share
25   install -Dm775 ${pkgname} ${startdir}/pkg/usr/share/${pkgname}/${pkgname}
26   if [ -f libdiscmage/discmage.so ]; then
27     cp libdiscmage/discmage.so ${startdir}/pkg/usr/share/${pkgname}/
28   elif [ -f discmage.so ]; then
29     cp discmage.so ${startdir}/pkg/usr/share/${pkgname}/
30   fi