Skip to content

Instantly share code, notes, and snippets.

@SkyzohKey
Created May 10, 2016 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SkyzohKey/97d014ef67c9236ac988851e2a0ed11c to your computer and use it in GitHub Desktop.
Save SkyzohKey/97d014ef67c9236ac988851e2a0ed11c to your computer and use it in GitHub Desktop.
Ricin new pkgbuild with waf
# Maintainer: Yuexuan Gu <lastavengers@outlook.com>
pkgname=ricin-git
_pkgname=Ricin
_submodule=tox-vapi
pkgver=0.652.786de97
pkgrel=1
pkgdesc="A dead-simple but powerful Tox client."
url="https://github.com/RicinApp/Ricin"
arch=('i686' 'x86_64')
license=('GPL3')
makedepends=('git' 'python' 'vala')
depends=(
'gtk3'
'toxcore'
'glib2'
'json-glib'
'libsoup'
'libnotify'
)
source=("git+https://github.com/RicinApp/Ricin.git")
sha256sums=('SKIP')
provides=('ricin')
conflicts=('ricin')
pkgver() {
cd "${srcdir}/${_pkgname}"
echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}
build() {
cd "${srcdir}/${_pkgname}"
./waf distclean
./waf configure --prefix=$pkgdir
./waf build
}
package() {
cd "${srcdir}/${_pkgname}"
./waf install
# cover ${pkgdir}/usr/bin/Ricin"
install -Dm755 "build/${_pkgname}" "${pkgdir}/usr/bin/ricin"
}
@SkyzohKey
Copy link
Author

@LastAvengers Here is the updated PKGBUILD, hope it works. ;)

@SilverRainZ
Copy link

SilverRainZ commented May 17, 2016

-    ./waf configure --prefix=$pkgdir
+    ./waf configure --prefix=${pkgdir}/usr --bindir=${pkgdir}/usr/bin

Sorry for replying so late, I am quite busy recently.

Packages have updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment