mirror of
https://github.com/alrayyes/corrupter-arch-package
synced 2023-11-14 15:56:28 +00:00
34 lines
759 B
Bash
34 lines
759 B
Bash
|
# Maintainer: Ryan Kes <alrayyes@gmail.com>
|
||
|
|
||
|
pkgname=corrupter-git
|
||
|
pkgver=r21.b8b55be
|
||
|
pkgrel=1
|
||
|
pkgdesc='Simple image glitcher suitable for producing nice looking i3lock backgrounds'
|
||
|
arch=('i686' 'x86_64')
|
||
|
url='https://github.com/r00tman/corrupter'
|
||
|
depends=('libx11' 'notmuch')
|
||
|
makedepends=('git' 'go')
|
||
|
license=('custom:ISC')
|
||
|
|
||
|
md5sums=('SKIP')
|
||
|
|
||
|
source=("git+https://github.com/r00tman/${pkgname%-git}")
|
||
|
|
||
|
pkgver() {
|
||
|
cd "${pkgname%-git}"
|
||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||
|
}
|
||
|
|
||
|
|
||
|
build() {
|
||
|
cd "${pkgname%-git}"
|
||
|
go build
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "${pkgname%-git}"
|
||
|
|
||
|
install -Dm755 corrupter "${pkgdir}/usr/bin/corrupter"
|
||
|
# install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
|
||
|
}
|