blob: 2507742350252970d0c019677fd009efd580e3cf (
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
35
36
37
38
39
40
41
42
43
|
# Maintainer: ThecaTTony <thecattony at gmx dot com>
# Contributor: Santiago Bruno <bananabruno at gmail dot com>
pkgname=mtvcgui
pkgver=1.0.2
pkgrel=3
pkgdesc="Mencoder TV Capture GUI"
arch=('any')
url="http://www.santiagobruno.com.ar/programas.html#mtvcgui"
license=('GPL2')
depends=('hicolor-icon-theme' 'mencoder' 'mplayer' 'python2-pyqt4' 'python2-sip-pyqt4')
source=( https://github.com/sbruno/mtvcgui/archive/$pkgver.tar.gz )
md5sums=('f437f66fa1bb11889714af5cab3b83cf')
prepare() {
cd "${srcdir}"/"${pkgname}"-"${pkgver}"/src
sed -i '1s+python+python2+' run.py
}
package() {
cd "${srcdir}"/"${pkgname}"-"${pkgver}"/src
install -Dm644 ui/icons/16x16/"${pkgname}".png \
"${pkgdir}"/usr/share/icons/hicolor/16x16/apps/"${pkgname}".png
install -Dm644 ui/icons/22x22/"${pkgname}".png \
"${pkgdir}"/usr/share/icons/hicolor/22x22/apps/"${pkgname}".png
install -Dm644 ui/icons/32x32/"${pkgname}".png \
"${pkgdir}"/usr/share/icons/hicolor/32x32/apps/"${pkgname}".png
install -Dm644 ui/icons/48x48/"${pkgname}".png \
"${pkgdir}"/usr/share/icons/hicolor/48x48/apps/"${pkgname}".png
install -Dm644 ui/icons/64x64/"${pkgname}".png \
"${pkgdir}"/usr/share/icons/hicolor/64x64/apps/"${pkgname}".png
install -Dm644 ui/icons/128x128/"${pkgname}".png \
"${pkgdir}"/usr/share/icons/hicolor/128x128/apps/"${pkgname}".png
install -Dm644 ui/icons/128x128/"${pkgname}".png \
"${pkgdir}"/usr/share/pixmaps/"${pkgname}".png
install -Dm644 ui/icons/"${pkgname}".svg \
"${pkgdir}"/usr/share/icons/hicolor/scalable/apps/"${pkgname}".svg
install -Dm644 "${pkgname}".desktop "${pkgdir}"/usr/share/applications/"${pkgname}".desktop
install -d "${pkgdir}"/opt/"${pkgname}"
cp -r * "${pkgdir}"/opt/"${pkgname}"
install -d "${pkgdir}"/usr/bin/
ln -s "/opt/"${pkgname}"/run.py" "${pkgdir}"/usr/bin/"${pkgname}"
}
|