2019-03-24 12:56:14 +00:00
|
|
|
# Maintainer: Ryan Kes <alrayyes@gmail.com>
|
|
|
|
|
|
|
|
pkgname=corrupter-git
|
2019-03-24 14:16:51 +00:00
|
|
|
pkgver=r22.6e23db9
|
2019-03-24 12:56:14 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Simple image glitcher suitable for producing nice looking i3lock backgrounds'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='https://github.com/r00tman/corrupter'
|
|
|
|
makedepends=('git' 'go')
|
2019-03-24 14:16:51 +00:00
|
|
|
license=('BSD 2-Clause')
|
2019-03-24 12:56:14 +00:00
|
|
|
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
source=("git+https://github.com/r00tman/${pkgname%-git}")
|
|
|
|
|
|
|
|
pkgver() {
|
2019-03-24 14:47:27 +00:00
|
|
|
cd "${pkgname%-git}"
|
2019-03-24 12:56:14 +00:00
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-03-24 14:47:27 +00:00
|
|
|
cd "${pkgname%-git}"
|
2019-03-24 12:56:14 +00:00
|
|
|
go build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-03-24 14:47:27 +00:00
|
|
|
cd "${pkgname%-git}"
|
2019-03-24 12:56:14 +00:00
|
|
|
|
|
|
|
install -Dm755 corrupter "${pkgdir}/usr/bin/corrupter"
|
2019-03-24 14:16:51 +00:00
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
|
2019-03-24 12:56:14 +00:00
|
|
|
}
|