blob: 98758f2d2c72fb5175e850421bbbe037b39d8719 (
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
32
33
34
35
36
|
# Maintainer: bemxio <bemxiov at protonmail dot com>
pkgname=xcat-git
pkgdesc="A command line tool to XOR a data stream with a given key"
pkgver=r2.d92ce2e
pkgrel=1
arch=(any)
url="https://github.com/mstrand/xcat"
#license=("LicenseRef-unknown")
depends=(python)
makedepends=(git)
provides=(xcat)
source=("git+https://github.com/mstrand/xcat.git")
md5sums=("SKIP")
pkgver() {
# move to the source directory
cd xcat
# use the number of revisions since beginning of the history
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
package() {
# move to the source directory
cd xcat
# copy the script to the package
install -Dm755 xcat.py "${pkgdir}/usr/bin/xcat"
}
|