# Tanım: WxPython'da yazılmış popüler youtube-dl nin çapraz platform arayüzü
# URL: https://github.com/MrS0m30n3/youtube-dl-gui
# Paketçi: Cihan_Alkan
# Gerekler: python wxpython pytwodict gtk-update-icon-cache ffmpeg youtube-dl
# Grup: medya

isim=youtube-dl-gui
surum=0.4
devir=1
kaynak=(https://github.com/MrS0m30n3/youtube-dl-gui/archive/0.4.tar.gz::$isim-$surum.tar.gz
        youtube-dl-gui.desktop
        youtube_dl_gui.po)

derle() {
	cd $isim-$surum
	# ed ile
	#printf '%s\n' '/LOCAL_NAMES/a' "        ('tr_TR', 'Turkish')," . w | ed -s optionsframe.py
	sed -i -e '/LOCALE_NAMES/a \' -e "        ('tr_TR', 'Turkish')," youtube_dl_gui//optionsframe.py
	install -Dm644 ../youtube_dl_gui.po $SRC/$isim-$surum/youtube_dl_gui/locale/tr_TR/LC_MESSAGES/youtube_dl_gui.po
	install -Dm644 ../youtube-dl-gui.desktop "$PKG/usr/share/applications/youtube-dl-gui.desktop"
	install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE"
	python setup.py install --root="$PKG" --optimize=1
}
