1
0
mirror of https://github.com/alrayyes/corrupter-arch-package synced 2023-11-14 15:56:28 +00:00
corrupter-arch-package/PKGBUILD

34 lines
777 B
Bash
Raw Permalink Normal View History

2019-03-24 12:56:14 +00:00
# Maintainer: Ryan Kes <alrayyes@gmail.com>
pkgname=corrupter-git
2019-06-10 13:09:07 +00:00
pkgver=r28.0ddcd9b
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-07-15 20:12:05 +00:00
provides=("corrupter")
conflicts=("corrupter")
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
}