You are not logged in.

#1 2016-01-08 22:21:37

Admicos
Member
Registered: 2014-12-09
Posts: 34

My first ever PKGBUILD. What should i add/remove/do.

The package is live on here

PKGBUILD:

# Maintainer: Ecmel B. CANLIER <ecbercnlmc(at)gmail.com>
pkgname=webdz-git
pkgver=1.0DEV
pkgrel=3
pkgdesc="Cleans up unminified, unneeded etc. files from your website project and creates a zip archive."
url="https://github.com/Admicos/webdz"
arch=('any')
license=('MIT')
depends=('java-runtime')
makedepends=('unzip' 'gradle' 'git' 'zip')
provides=('webdz')
conflicts=('webdz')
source=("webdz::git+https://github.com/Admicos/webdz")
md5sums=('SKIP')

pkgver() {
  cd "webdz"
  eval $(sed 's/\-//' res/webdz.properties)
  echo $version
}

build() {
  cd "webdz"
  gradle distZip
}

package() {
  cd "webdz"
  unzip webdz-distributeMe.zip -d $pkgdir
}

Oh, as an extra, i have a script that converts the gradle distribution zip to a package stucture pacman can understand. Here it is if you want to review it too.

Offline

Board footer

Powered by FluxBB