blob: 2ca377a840fd08e980e73198d51e198b633eded8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Damian Poddebniak <poddebniak at fh-muenster dot de>
pkgname=hexlify-git
pkgver=r17.b9f8998
pkgrel=1
pkgdesc="Python's {un,}hexlify for the command-line."
arch=('x86_64' 'i686' )
url="https://github.com/duesee/hexlify"
license=('AGPLv3')
makedepends=('git' 'rust' 'cargo')
provides=('hexlify' 'unhexlify')
source=('git+https://github.com/duesee/hexlify')
md5sums=('SKIP')
build() {
cd "$srcdir/hexlify"
cargo build --release
}
package() {
cd "$srcdir/hexlify"
mkdir -p $pkgdir/usr/bin
install -o root -g root -m 755 target/release/hexlify $pkgdir/usr/bin
ln -s /usr/bin/hexlify $pkgdir/usr/bin/unhexlify
}
pkgver() {
cd "$srcdir/hexlify"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
# vim:set ts=2 sw=2 et:
|