-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
128 lines (97 loc) · 3.49 KB
/
PKGBUILD
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
# Maintainer: https://aur.archlinux.org/account/toropisco
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: yugrotavele <yugrotavele@archlinux.us>
# Contributor: Paolo Stivanin <admin@polslinux.it>
pkgbase=winff
pkgname=(winff-common winff-gtk2 winff-gtk3 winff-qt5 winff-qt6)
pkgver=1.6.4
pkgrel=4
pkgdesc='GUI for ffmpeg written in Lazarus'
url='https://github.com/WinFF/winff/'
license=('GPL3')
arch=('x86_64')
makedepends=('lazarus' 'gendesk' 'git' gtk2 gtk3 qt5pas qt6pas)
source=("git+https://github.com/WinFF/winff.git#tag=winff-$pkgver")
md5sums=('SKIP')
prepare() {
gendesk -n -f \
--pkgname "Winff GTK2" \
--pkgdesc "GUI for ffmpeg written in Lazarus/GTK+2" \
--icon winff \
--genericname 'Video converter' \
--categories 'AudioVideo;AudioVideoEditing;GTK'
gendesk -n -f \
--pkgname "Winff GTK3" \
--pkgdesc "GUI for ffmpeg written in Lazarus/GTK+3" \
--icon winff \
--genericname 'Video converter' \
--categories 'AudioVideo;AudioVideoEditing;GTK'
gendesk -n -f \
--pkgname "Winff Qt5" \
--pkgdesc "GUI for ffmpeg written in Lazarus/Qt5" \
--icon winff \
--genericname 'Video converter' \
--categories 'AudioVideo;AudioVideoEditing;QT'
gendesk -n -f \
--pkgname "Winff Qt6" \
--pkgdesc "GUI for ffmpeg written in Lazarus/Qt6" \
--icon winff \
--genericname 'Video converter' \
--categories 'AudioVideo;AudioVideoEditing;QT'
}
build() {
cd "$pkgbase/$pkgbase"
lazbuild --lazarusdir=/usr/lib/lazarus winff.lpr --ws=gtk2 --os=linux --cpu=$ARCH
mv winff winff-gtk2
lazbuild --lazarusdir=/usr/lib/lazarus winff.lpr --ws=gtk3 --os=linux --cpu=$ARCH
mv winff winff-gtk3
lazbuild --lazarusdir=/usr/lib/lazarus winff.lpr --ws=qt5 --os=linux --cpu=$ARCH
mv winff winff-qt5
lazbuild --lazarusdir=/usr/lib/lazarus winff.lpr --ws=qt6 --os=linux --cpu=$ARCH
mv winff winff-qt6
}
package_winff-common() {
arch=(any)
cd "$pkgbase/$pkgbase"
install -d "$pkgdir/usr/share/$pkgbase/"
cp presets.xml "$pkgdir/usr/share/$pkgbase/"
install -Dm644 'winff-icons/48x48/winff.png' \
"$pkgdir/usr/share/pixmaps/winff.png"
for size in 16x16 24x24 32x32 48x48; do
install -Dm644 "winff-icons/$size/winff.png" \
"$pkgdir/usr/share/icons/hicolor/$size/apps/winff.png"
done
install -dm755 "$pkgdir/usr/share/winff"
cp -a languages "$pkgdir/usr/share/$pkgbase/"
install -dm755 "$pkgdir/usr/share/man/man1"
cp winff.1 "$pkgdir/usr/share/man/man1"
install -dm755 "$pkgdir/usr/share/doc"
cp -a docs "$pkgdir/usr/share/doc/$pkgbase"
}
package_winff-gtk2() {
depends=(winff-common ffmpeg gtk2)
install -Dm644 -t "$pkgdir/usr/share/applications/" winff-gtk2.desktop
cd "$pkgbase/$pkgbase"
install -Dt "${pkgdir}/usr/bin/" winff-gtk2
}
package_winff-gtk3() {
depends=(winff-common ffmpeg gtk3)
install -Dm644 -t "$pkgdir/usr/share/applications/" winff-gtk3.desktop
cd "$pkgbase/$pkgbase"
install -Dt "${pkgdir}/usr/bin/" winff-gtk3
}
package_winff-qt5() {
depends=(winff-common ffmpeg qt5pas)
install -Dm644 -t "$pkgdir/usr/share/applications/" winff-qt5.desktop
cd "$pkgbase/$pkgbase"
install -Dt "${pkgdir}/usr/bin/" winff-qt5
}
package_winff-qt6() {
depends=(winff-common ffmpeg qt6pas)
install -Dm644 -t "$pkgdir/usr/share/applications/" winff-qt6.desktop
cd "$pkgbase/$pkgbase"
install -Dt "${pkgdir}/usr/bin/" winff-qt6
}
# getver: -u 2 github.com/WinFF/winff/tree/master/winff
# vim:set ts=2 sw=2 et: