diff options
author | Ales Katona | 2019-08-25 09:52:11 -0600 |
---|---|---|
committer | Ales Katona | 2019-08-25 09:52:11 -0600 |
commit | e85e3a0d8c48bc02c87f11d20d5315c3353af7dc (patch) | |
tree | 61d57562e883b84b65b7c26656549217bfc1a90a /PKGBUILD | |
download | aur-e85e3a0d8c48bc02c87f11d20d5315c3353af7dc.tar.gz |
add rx pixel editor to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c9b2122870b6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Ales Katona <almindor@gmail.com> +pkgname=rx +pkgver=0.1.0 +pkgrel=1 +pkgdesc='A modern and extensible pixel editor implemented in rust.' +arch=(i686 x86_64) +url='http://cloudhead.io/rx/' +license=('GPL3') +makedepends=('clang' 'rust') +source=("https://github.com/cloudhead/rx/archive/v${pkgver}.tar.gz" + 'http://cloudhead.io/rx/palettes/sweetie16.palette') +sha256sums=('b5b413d7a4bb3921f6a471dcc0767eee31275ede548ccc59216231c8b2702b26' + '17f4f037dbcedbed12c650a68cf2af372fdcd4541a2b23ae40d378d12d491ff4') + +build() { + cd "${pkgname}-${pkgver}" + patch -p0 < ../../init.tx.patch + cargo build --release --features vulkan +} + +package() { + mkdir -p "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/usr/share/rx/palettes" + + install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/${pkgname}-${pkgver}/target/release/rx" + install -Dm644 -t "${pkgdir}/usr/share/rx/palettes" "sweetie16.palette" +} |