2018-04-06 18:17:20 +02:00
|
|
|
# Maintainer: willemw <willemw12@gmail.com>
|
|
|
|
|
|
|
|
_pkgname=cpod
|
|
|
|
pkgname=$_pkgname-git
|
2019-05-02 19:04:04 +02:00
|
|
|
pkgver=1.27.1.r6.g2f4e7e3
|
2018-04-06 18:17:20 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A simple, beautiful podcast app"
|
|
|
|
arch=('x86_64')
|
2019-05-02 19:04:04 +02:00
|
|
|
url="https://github.com/z-------------/CPod"
|
2018-04-06 18:17:20 +02:00
|
|
|
license=('Apache')
|
2019-05-02 19:04:04 +02:00
|
|
|
depends=('gconf')
|
2019-04-06 08:25:19 +02:00
|
|
|
makedepends=('git' 'gulp' 'nvm' 'python2' 'yarn')
|
2018-04-06 18:17:20 +02:00
|
|
|
provides=($_pkgname)
|
|
|
|
conflicts=($_pkgname)
|
|
|
|
replaces=('cumulonimbus')
|
2019-05-02 19:04:04 +02:00
|
|
|
source=($pkgname::git+https://github.com/z-------------/CPod.git)
|
2018-04-06 18:17:20 +02:00
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
2019-05-02 19:04:04 +02:00
|
|
|
# For the Node.js version used by CPod, see: .travis.yml (dist: and node_js:)
|
|
|
|
# For a list of all Node.js versions, run: source /usr/share/nvm/init-nvm.sh ; nvm ls-remote
|
|
|
|
#_nodejsver=0.10.25
|
|
|
|
_nodejsver=8.16.0
|
2019-04-06 08:25:19 +02:00
|
|
|
|
2018-04-06 18:17:20 +02:00
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
2019-04-06 08:25:19 +02:00
|
|
|
|
|
|
|
# Keep all Node.js files inside the package build folder
|
|
|
|
export HOME="$srcdir/$pkgname"
|
|
|
|
|
|
|
|
# Use a specific Node.js version
|
|
|
|
export NVM_DIR="$srcdir/$pkgname/.nvm"
|
|
|
|
source /usr/share/nvm/nvm.sh
|
|
|
|
nvm install $_nodejsver
|
|
|
|
nvm use $_nodejsver
|
|
|
|
|
|
|
|
#yarn config set python /usr/bin/python2
|
2018-04-06 18:17:20 +02:00
|
|
|
yarn
|
2019-04-06 08:25:19 +02:00
|
|
|
|
2018-04-06 18:17:20 +02:00
|
|
|
gulp
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
rm -rf dist
|
|
|
|
yarn dist --linux deb # --x64
|
|
|
|
|
|
|
|
cd dist
|
|
|
|
bsdtar xf CPod_*.deb data.tar.xz
|
|
|
|
bsdtar xf data.tar.xz --directory "$pkgdir"
|
|
|
|
|
|
|
|
install -dm755 "$pkgdir/usr/bin"
|
2019-04-06 08:14:12 +02:00
|
|
|
ln -sf /opt/CPod/cpod "$pkgdir/usr/bin/cpod"
|
2018-04-06 18:17:20 +02:00
|
|
|
}
|
|
|
|
|