diff options
author | Daniele Moser | 2024-01-02 11:40:13 +0100 |
---|---|---|
committer | Daniele Moser | 2024-01-02 11:40:13 +0100 |
commit | 65aecef4626423fb356f58025ce3ec91cff8b276 (patch) | |
tree | 1c9f1036607ebabaa5c3f19de76e5c264175ebd0 | |
download | aur-65aecef4626423fb356f58025ce3ec91cff8b276.tar.gz |
build: add PKGBUILD proto
-rw-r--r-- | PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a2c600d5ac49 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Your Name <youremail@domain.com> +pkgname=NAME +pkgver=VERSION +pkgrel=1 +epoch= +pkgdesc="" +arch=() +url="" +license=('GPL') +groups=() +depends=() +makedepends=() +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("$pkgname-$pkgver.tar.gz" + "$pkgname-$pkgver.patch") +noextract=() +md5sums=() +validpgpkeys=() + +prepare() { + cd "$pkgname-$pkgver" + patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +} + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +check() { + cd "$pkgname-$pkgver" + make -k check +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} |