summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b71c1cb90661adea8297599320a1b546d817168 (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
# Maintainer: 7Ji <pugokushin@gmail.com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Eric BĂ©langer <eric@archlinux.org>

pkgname=beep-sudoable
pkgver=1.4.12
pkgrel=2
pkgdesc='Advanced PC speaker beeping program, patched so you can run it with sudo'
url='https://github.com/spkr-beep/beep'
arch=('x86_64')
license=('GPL2')
depends=('glibc')
provides=('beep')
conflicts=('beep')
source=(${url}/archive/v${pkgver}/beep-${pkgver}.tar.gz 0001-beep-main.c-yolo-it-when-running-with-sudo.patch)
sha512sums=('18fed77bc4820ecc84ac12e903d516d5228fa2038df1788cc68db76e40b3c47a271911cc45bc48ce94e3f215803c5c05cb6c08ebb47ae6d7fcf1e0bc1ac169cd'
	'18208e0b8817aeb6793423e645932474b098703f042ff07630bb50da7f2b0f3c5c1b180e5f3e89784654cdff0fc4f1d2baca20e4a450f314d583bda9a0c2976f')
b2sums=('06f21cf3c40389acca50e6e420af4e738b7484e096bb689345fedb37684b15733dbb38e8a5d0d360f23e020cebe9ba321984ee43f41b0ad980648414ddbb9375'
	'747710350428104c3cef987b4e0170a5396244023851a1fbe0faa4b1ffa8a847b557326bf46eedfffd82cc2c99e3de68e63488e4febbd2ad08566a812643d1d0')

prepare() {
  patch -d "beep-${pkgver}" -Np1 -i "${srcdir}/0001-beep-main.c-yolo-it-when-running-with-sudo.patch"
}
build() {
  cd "beep-${pkgver}"
  make
}

package() {
  cd "beep-${pkgver}"
  make DESTDIR="${pkgdir}" prefix=/usr install
}