updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / floha / PKGBUILD
blob06f395ededdc2d0f2bfee33eefa2413caa4535b8
1 # Maintainer: Hakim <acrox999 at gmail dot com>
2 pkgname=floha
3 pkgver=0.3
4 pkgrel=1
5 pkgdesc="A Qt frontend for FFMpeg to batch encode audios and videos."
6 arch=(any)
7 url="http://sumbu.org/node/839"
8 license=('OSL-3')
9 groups=('multimedia')
10 depends=('qt' 'ffmpeg')
11 source=('http://www.sumbu.org/sites/default/files/FlohaVer0.3.tar_.bz2' 'OSL3.0' 'floha.desktop' 'floha')
12 noextract=('FlohaVer0.3.tar_.bz2')
13 install=${pkgname}.install
14 options=(!strip)
15 md5sums=('7cba11c44a7dadcfbd5aec5231ecdf7a'
16          '1d79f7ce4a1f6a2b352d40a9e8334cd2'
17          '4f8328902b8d296ae86a62389d4037e8'
18          '4e63017e3981e5dc5bed34bb6f0b09bc')
20 build() {
21 cd "${srcdir}"
23 # Create a new folder for source files to avoid conflicts.
24 mkdir "${srcdir}/${pkgname}-${pkgver}"
26 # Extract source tarball into the previously created folder.
27 tar -xf FlohaVer0.3.tar_.bz2 -C "${srcdir}/${pkgname}-${pkgver}"
28 cd "${srcdir}/${pkgname}-${pkgver}"
30 # Create a folder named 'license' in the previously created folder and copy the license file into this folder.
31 mkdir license
32 cp "${startdir}/OSL3.0" "${srcdir}/${pkgname}-${pkgver}/license/OSL3.0"
35 package() {
36 # Install the launcher script into '/usr/bin/'.
37 mkdir -p "${pkgdir}/usr/bin/"
38 cd "${startdir}"
39 install -Dm755 floha "${pkgdir}/usr/bin/"
41 # Install the license into '/usr/share/licenses/${pkgname}/'.
42 install -Dm644 OSL3.0 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
44 # Install '${pkgname}.desktop' so that the application will be available in the application menu.
45 mkdir -p "${pkgdir}/usr/share/applications/"
46 install -Dm644 floha.desktop "${pkgdir}/usr/share/applications/"
48 # Copy the whole source folder into '/usr/share/'.
49 cp -r "${srcdir}/${pkgname}-${pkgver}" "${pkgdir}/usr/share/"
51 # Rename the source folder from '${pkgname}-${pkgver}' to '${pkgname}'.
52 cd "${pkgdir}/usr/share/"
53 mv "${pkgname}-${pkgver}" "${pkgname}"