Exemple #1
0
def pre_build():
    aur_pre_build('clipit')

    for line in edit_file('PKGBUILD'):
        if line.startswith('depends'):
            line = line.replace('gtk2', 'gtk3')
        print(line)
Exemple #2
0
def pre_build():
    aur_pre_build('pcem',maintainers=['aaronp'])

    for line in edit_file('PKGBUILD'):
        if line.startswith('depends'):
            line = line.replace('wxgtk2', 'wxgtk3')
        print(line)
Exemple #3
0
def pre_build():
    aur_pre_build('pnglatex', maintainers=['Phaotee'])
    
    for line in edit_file('PKGBUILD'):
        if line.startswith('pkgname='):
            line += '-git'
        print(line)
Exemple #4
0
def pre_build():
    aur_pre_build('libblocksruntime',maintainers=['Zrax'])

    for line in edit_file('PKGBUILD'):
        if line.startswith('depends'):
            line = line.replace('depends', 'makedepends')
        print(line)
Exemple #5
0
def pre_build():
    aur_pre_build()
    for line in edit_file('PKGBUILD'):
        print(line)
        if 'makedepends' in line:
            # https://bugs.square-r00t.net/index.php?do=details&task_id=47
            print("options+=('!makeflags')")
Exemple #6
0
def pre_build():
    aur_pre_build()

    for line in edit_file('PKGBUILD'):
        if 'groups=' in line:
            continue
        print(line)
Exemple #7
0
def pre_build():
    aur_pre_build()

    for line in edit_file('PKGBUILD'):
        if 'provides=' in line:
            print(line.replace("'nextcloud'", '"nextcloud=$pkgver"'))
        else:
            print(line)
Exemple #8
0
def pre_build():
    aur_pre_build()
    for line in edit_file('PKGBUILD'):
        if line.startswith('groups='):
            continue
        if line.startswith('pkgver='):
            print('epoch=1')
        print(line)
Exemple #9
0
def pre_build():
    aur_pre_build('syncthingtray')

    for line in edit_file('PKGBUILD'):
        if line.startswith('pkgname='):
            line = line.replace('syncthingtray', 'syncthingtray-nowebview')
        elif line.startswith('_webview_provider'):
            line = line.replace('webengine', 'none')
        print(line)
Exemple #10
0
def pre_build():
    aur_pre_build()
    for line in edit_file('PKGBUILD'):
        # makechrootpkg has a bug - if a package that creates user(s) is fed
        # via -I, makepkg in the chroot fails to run as the newly created user
        # might have the same UID (1000) as builduser, and thus the NOPASSWD
        # line for builduser in /etc/sudoers has no effects.
        if line.startswith('depends='):
            line = line.replace('amule-dlp', 'wxgtk')
        print(line)
    add_makedepends(['git'])
Exemple #11
0
def pre_build():
    aur_pre_build('gcc10', maintainers=['jonathon'])

    for line in edit_file('PKGBUILD'):
        if 'sed -i' in line and 'gcc/configure' in line:
            print(line)
            print("sed -i '/HAVE_LIMITS_H/d' libiberty/fibheap.c\n")
            print("sed -i -e '/limits.h/{n;d}' libiberty/fibheap.c\n")
            print("sed -i '/HAVE_FCNTL_H/d' libiberty/pex-unix.c\n")
            print("sed -i -e '/fcntl.h/{n;d}' libiberty/pex-unix.c\n")
        else:
            print(line)
Exemple #12
0
def pre_build():
    aur_pre_build()
    for line in edit_file('PKGBUILD'):
        if line.startswith('depends='):
            line = 'depends=(\'wine\')'
        print(line)