summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b59e47aed530b0e6549bca38e2813ec5e4db4c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Sergio Conde <skgsergio@gmail.com>
pkgname=bsvc_etsiinf-upm
pkgver=2.1+
pkgrel=3
pkgdesc="Motorola MC68000 simulator precompiled by the Department of Architecture and Technology Information Systems (DATSI) of the School of Computer Engineers (ETSIInf) at the Technical University of Madrid (UPM)."
arch=('i686' 'x86_64')
url='http://www.datsi.fi.upm.es/docencia/Arquitectura_09/Proyecto_E_S/'
license=('custom')
depends=('tk' 'xterm')
source=(
    'http://www.datsi.fi.upm.es/docencia/Arquitectura_09/Proyecto_E_S/bsvc-2.1+_Estatica.tar.gz'
)
sha256sums=(
    '204fcf7e5f07954d6d08b0d4ea2297ac328faf14360a072657c3711bd6675745'
)

package() {
    # Copy files to pkgdir
    cp -R "${srcdir}"/usr "${pkgdir}"/usr

    # Create links in /usr/local/bin/ for the executable binaries found in /usr/local/bsvc/bin/
    mkdir "${pkgdir}"/usr/local/bin
    for file in "${pkgdir}"/usr/local/bsvc/bin/*; do
        if [ -f ${file} ] && [ -x ${file} ]; then
            ln -s ../bsvc/bin/"$(basename ${file})" "${pkgdir}"/usr/local/bin/"$(basename ${file})"
        fi
    done

    # Reset UI fonts and colors
    echo -n > "${pkgdir}"/usr/local/bsvc/bin/UI/bsvc.ad

    # Install license
    install -Dm644 "${pkgdir}"/usr/local/bsvc/License.doc "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}