Skip to content

Commit

Permalink
Add PKGBUILD for Archlinux packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoyen committed Feb 10, 2015
1 parent cb416d8 commit b96f4b9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/doc
/Cargo.lock
*.swp
/packaging/archlinux/*
!/packaging/archlinux/PKGBUILD

29 changes: 29 additions & 0 deletions packaging/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pkgname=librcimmixcons-git
pkgver=0.0.1
pkgrel=0
pkgdesc="A RCImmixCons implementation in Rust"
arch=('x86_64')
url="https://github.com/lummax/librcimmixcons"
license=('MIT')
depends=('gcc-libs')
makedepends=('rust-nightly-bin')

prepare() {
rm -f ${pkgname}-${pkgver}
ln -s ../../../ ${pkgname}-${pkgver}
}

build() {
cd ${pkgname}-${pkgver}
cargo build --release
}

package() {
mkdir -p ${pkgdir}/usr/lib/
install -m 0755 \
"${pkgname}-${pkgver}"/target/release/librcimmixcons-*.so \
"${pkgdir}/usr/lib/librcimmixcons.so.${pkgver}"
ldconfig -n "${pkgdir}/usr/lib/"
cd "$pkgdir"/usr/lib
ln -s "librcimmixcons.so.${pkgver}" librcimmixcons.so
}

0 comments on commit b96f4b9

Please sign in to comment.