I have a small script that uses some static text files as data source. I want to make Archlinux AUR package for this script. I plan to install the script into /usr/bin/
and static text files somewhere locally ~/.data_files
I have several static files: data1.txt, data2.txt, data3.txt. Basically, I need the package manager to install the script into /usr/bin/
, create ~/.data_files
directory and copy the static files there.
How should I configure my PKGBUILD in such case?
Here is my current version:
# Maintainer: john doe
pkgname=myscript
pkgver=1.0
pkgrel=1
pkgdesc="test script"
arch=(any)
url="https://github.com/me/myscript"
license=('MIT')
depends=('file')
source=('https://raw.githubusercontent.com/me/myscript/master/myscript')
md5sums=('1fa410f1647700a6da3ab0ebyc52465d')
package() {
install -D -m 755 myscript ${pkgdir}/usr/bin/myscript
}