summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a225787600e0df3bd580a18e240b971c083f0ba5 (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
# Maintainer: agnotek <agnostic [dot] sn [at] gmail [dot] com>

pkgname=ytplmp4
pkgver=9.1
pkgrel=1
pkgdesc="YTPLMP4 - YouTube Playlist to MP3. Download single songs or playlists from Youtube and Soundcloud."
arch=('any')
url="http://youtube.com/"
license=('GPL3')
makedepends=('')
depends=('id3v2' 'python2-eyed3' 'youtube-dl' 'yad' 'curl' 'feh' 'recode' 'smplayer' 'ffmpeg' 'perl-image-exiftool' 'lame' 'sox')
options=('!strip')
install="ytplmp4.install"
md5sums=('93489e86f6cdee18b99d877bd55a9a03'
         '9347b695d57d40c8756fcb593f28158c'
         'ceae8591b64a369118d4928042cfb403')

source=("https://dl.dropboxusercontent.com/u/9839330/ytplmp4/YTPLMP4-${pkgver}.tar.gz"
        "ytplmp4.install"
        "ytplmp4.desktop")

package() {
  cd "${srcdir}"

  install -dm755 "${pkgdir}/usr/share/${pkgname}"
  install -dm755 "${pkgdir}/usr/bin"

  # Program
  echo "${pkgdir}/usr/share/${pkgname}/"
  install -Dm755 ${srcdir}/YTPLMP4 "${pkgdir}/usr/share/${pkgname}/"

  # Link to program
  mkdir -p "${pkgdir}/usr/bin"
  ln -s "/usr/share/${pkgname}/YTPLMP4" "${pkgdir}/usr/bin/YTPLMP4"

  # Desktop file
  install -Dm644 "${srcdir}/ytplmp4.desktop" "${pkgdir}/usr/share/applications/ytplmp4.desktop"

}