from interwiki import StartsWithTranslator
from interwiki import translator
import re
import sys


@translator()
class Archlinux(StartsWithTranslator):
    begin = 'www.archlinux.org/packages/'
    (major, minor) = sys.version_info[:2]

    def __call__(self, url):
        what = re.match(r'https?://www.archlinux.org/packages/\?q=(.*)', url)

        return'https://aur.archlinux.org/packages.php?K=%s' % what.group(1)

3066962fdcfd0ea09f7521f44df4b08a441fafca
<mask token>


@translator()
class Archlinux(StartsWithTranslator):
    <mask token>
    <mask token>
    <mask token>

<mask token>


@translator()
class Archlinux(StartsWithTranslator):
    <mask token>
    <mask token>

    def __call__(self, url):
        what = re.match('https?://www.archlinux.org/packages/\\?q=(.*)', url)
        return 'https://aur.archlinux.org/packages.php?K=%s' % what.group(1)

<mask token>


@translator()
class Archlinux(StartsWithTranslator):
    begin = 'www.archlinux.org/packages/'
    major, minor = sys.version_info[:2]

    def __call__(self, url):
        what = re.match('https?://www.archlinux.org/packages/\\?q=(.*)', url)
        return 'https://aur.archlinux.org/packages.php?K=%s' % what.group(1)

from interwiki import StartsWithTranslator
from interwiki import translator
import re
import sys


@translator()
class Archlinux(StartsWithTranslator):
    begin = 'www.archlinux.org/packages/'
    major, minor = sys.version_info[:2]

    def __call__(self, url):
        what = re.match('https?://www.archlinux.org/packages/\\?q=(.*)', url)
        return 'https://aur.archlinux.org/packages.php?K=%s' % what.group(1)

from interwiki import StartsWithTranslator
from interwiki import translator
import re
import sys


@translator()
class Archlinux(StartsWithTranslator):
    begin = 'www.archlinux.org/packages/'
    (major, minor) = sys.version_info[:2]

    def __call__(self, url):
        what = re.match(r'https?://www.archlinux.org/packages/\?q=(.*)', url)

        return'https://aur.archlinux.org/packages.php?K=%s' % what.group(1)
