Packaging: Arch PKGBUILD, install.sh, desktop entry and icon
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
4365908d4c
commit
19986d4ead
4 changed files with 95 additions and 0 deletions
20
assets/dev.nacre.Nacre.desktop
Normal file
20
assets/dev.nacre.Nacre.desktop
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Nacre
|
||||
GenericName=Web Browser
|
||||
Comment=Browse the web
|
||||
Exec=nacre %U
|
||||
Icon=dev.nacre.Nacre
|
||||
Terminal=false
|
||||
Categories=Network;WebBrowser;
|
||||
MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
|
||||
StartupWMClass=dev.nacre.Nacre
|
||||
Actions=new-window;new-private-window;
|
||||
|
||||
[Desktop Action new-window]
|
||||
Name=New window
|
||||
Exec=nacre --new-window
|
||||
|
||||
[Desktop Action new-private-window]
|
||||
Name=New Incognito window
|
||||
Exec=nacre --incognito
|
||||
11
assets/dev.nacre.Nacre.svg
Normal file
11
assets/dev.nacre.Nacre.svg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
|
||||
<defs>
|
||||
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#6750A4"/><stop offset="1" stop-color="#7D5260"/></linearGradient>
|
||||
<radialGradient id="sheen" cx="0.3" cy="0.25" r="0.55"><stop offset="0" stop-color="#fff" stop-opacity=".28"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></radialGradient>
|
||||
<radialGradient id="pearl" cx="0.35" cy="0.35" r="0.7"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#EADDFF"/></radialGradient>
|
||||
</defs>
|
||||
<polygon points="235.52,128.00 234.41,129.86 233.30,131.68 232.20,133.46 231.16,135.21 230.19,136.94 229.31,138.65 228.54,140.34 227.89,142.04 227.38,143.74 227.00,145.46 226.77,147.20 226.67,148.97 226.70,150.79 226.84,152.64 227.08,154.55 227.41,156.50 227.79,158.51 228.20,160.56 228.63,162.65 229.04,164.77 229.40,166.92 229.69,169.09 229.89,171.25 229.98,173.40 229.93,175.53 229.72,177.61 229.35,179.64 228.80,181.60 228.08,183.47 227.17,185.25 226.08,186.93 224.82,188.50 223.40,189.95 221.83,191.29 220.12,192.51 218.31,193.61 216.40,194.62 214.43,195.53 212.41,196.35 210.37,197.11 208.32,197.82 206.30,198.50 204.31,199.16 202.39,199.84 200.53,200.53 198.76,201.28 197.08,202.08 195.50,202.96 194.01,203.94 192.62,205.01 191.32,206.19 190.10,207.49 188.96,208.90 187.88,210.41 186.84,212.03 185.83,213.73 184.83,215.51 183.83,217.35 182.81,219.23 181.76,221.12 180.66,223.00 179.49,224.84 178.25,226.63 176.93,228.33 175.53,229.93 174.03,231.39 172.44,232.70 170.77,233.85 169.01,234.82 167.16,235.60 165.25,236.19 163.28,236.58 161.26,236.78 159.19,236.79 157.11,236.63 155.01,236.31 152.90,235.86 150.80,235.28 148.72,234.62 146.67,233.89 144.65,233.12 142.66,232.33 140.72,231.57 138.81,230.85 136.94,230.19 135.11,229.62 133.30,229.15 131.52,228.81 129.76,228.60 128.00,228.53 126.24,228.60 124.48,228.81 122.70,229.15 120.89,229.62 119.06,230.19 117.19,230.85 115.28,231.57 113.34,232.33 111.35,233.12 109.33,233.89 107.28,234.62 105.20,235.28 103.10,235.86 100.99,236.31 98.89,236.63 96.81,236.79 94.74,236.78 92.72,236.58 90.75,236.19 88.84,235.60 86.99,234.82 85.23,233.85 83.56,232.70 81.97,231.39 80.47,229.93 79.07,228.33 77.75,226.63 76.51,224.84 75.34,223.00 74.24,221.12 73.19,219.23 72.17,217.35 71.17,215.51 70.17,213.73 69.16,212.03 68.12,210.41 67.04,208.90 65.90,207.49 64.68,206.19 63.38,205.01 61.99,203.94 60.50,202.96 58.92,202.08 57.24,201.28 55.47,200.53 53.61,199.84 51.69,199.16 49.70,198.50 47.68,197.82 45.63,197.11 43.59,196.35 41.57,195.53 39.60,194.62 37.69,193.61 35.88,192.51 34.17,191.29 32.60,189.95 31.18,188.50 29.92,186.93 28.83,185.25 27.92,183.47 27.20,181.60 26.65,179.64 26.28,177.61 26.07,175.53 26.02,173.40 26.11,171.25 26.31,169.09 26.60,166.92 26.96,164.77 27.37,162.65 27.80,160.56 28.21,158.51 28.59,156.50 28.92,154.55 29.16,152.64 29.30,150.79 29.33,148.97 29.23,147.20 29.00,145.46 28.62,143.74 28.11,142.04 27.46,140.34 26.69,138.65 25.81,136.94 24.84,135.21 23.80,133.46 22.70,131.68 21.59,129.86 20.48,128.00 19.40,126.10 18.39,124.17 17.46,122.21 16.64,120.21 15.97,118.20 15.45,116.17 15.10,114.14 14.94,112.11 14.99,110.10 15.23,108.12 15.68,106.17 16.33,104.26 17.17,102.41 18.19,100.62 19.37,98.89 20.70,97.23 22.14,95.64 23.69,94.11 25.30,92.64 26.96,91.23 28.64,89.86 30.31,88.53 31.95,87.23 33.53,85.94 35.03,84.65 36.44,83.34 37.75,82.01 38.93,80.64 40.00,79.22 40.94,77.73 41.75,76.18 42.45,74.55 43.05,72.83 43.55,71.04 43.97,69.16 44.34,67.22 44.66,65.20 44.97,63.13 45.29,61.02 45.63,58.89 46.03,56.74 46.49,54.61 47.04,52.51 47.70,50.46 48.48,48.48 49.38,46.59 50.42,44.81 51.61,43.16 52.93,41.64 54.40,40.28 55.99,39.08 57.71,38.04 59.55,37.16 61.48,36.44 63.49,35.88 65.58,35.46 67.71,35.17 69.88,34.99 72.06,34.90 74.24,34.88 76.40,34.92 78.54,34.97 80.63,35.03 82.67,35.05 84.65,35.03 86.57,34.94 88.42,34.76 90.21,34.47 91.94,34.07 93.62,33.53 95.24,32.86 96.83,32.06 98.38,31.13 99.92,30.08 101.45,28.92 102.98,27.66 104.53,26.33 106.09,24.94 107.69,23.53 109.33,22.11 111.01,20.72 112.74,19.39 114.51,18.13 116.33,16.98 118.20,15.97 120.11,15.10 122.05,14.41 124.02,13.90 126.00,13.59 128.00,13.49 130.00,13.59 131.98,13.90 133.95,14.41 135.89,15.10 137.80,15.97 139.67,16.98 141.49,18.13 143.26,19.39 144.99,20.72 146.67,22.11 148.31,23.53 149.91,24.94 151.47,26.33 153.02,27.66 154.55,28.92 156.08,30.08 157.62,31.13 159.17,32.06 160.76,32.86 162.38,33.53 164.06,34.07 165.79,34.47 167.58,34.76 169.43,34.94 171.35,35.03 173.33,35.05 175.37,35.03 177.46,34.97 179.60,34.92 181.76,34.88 183.94,34.90 186.12,34.99 188.29,35.17 190.42,35.46 192.51,35.88 194.52,36.44 196.45,37.16 198.29,38.04 200.01,39.08 201.60,40.28 203.07,41.64 204.39,43.16 205.58,44.81 206.62,46.59 207.52,48.48 208.30,50.46 208.96,52.51 209.51,54.61 209.97,56.74 210.37,58.89 210.71,61.02 211.03,63.13 211.34,65.20 211.66,67.22 212.03,69.16 212.45,71.04 212.95,72.83 213.55,74.55 214.25,76.18 215.06,77.73 216.00,79.22 217.07,80.64 218.25,82.01 219.56,83.34 220.97,84.65 222.47,85.94 224.05,87.23 225.69,88.53 227.36,89.86 229.04,91.23 230.70,92.64 232.31,94.11 233.86,95.64 235.30,97.23 236.63,98.89 237.81,100.62 238.83,102.41 239.67,104.26 240.32,106.17 240.77,108.12 241.01,110.10 241.06,112.11 240.90,114.14 240.55,116.17 240.03,118.20 239.36,120.21 238.54,122.21 237.61,124.17 236.60,126.10" fill="url(#g)"/>
|
||||
<polygon points="235.52,128.00 234.41,129.86 233.30,131.68 232.20,133.46 231.16,135.21 230.19,136.94 229.31,138.65 228.54,140.34 227.89,142.04 227.38,143.74 227.00,145.46 226.77,147.20 226.67,148.97 226.70,150.79 226.84,152.64 227.08,154.55 227.41,156.50 227.79,158.51 228.20,160.56 228.63,162.65 229.04,164.77 229.40,166.92 229.69,169.09 229.89,171.25 229.98,173.40 229.93,175.53 229.72,177.61 229.35,179.64 228.80,181.60 228.08,183.47 227.17,185.25 226.08,186.93 224.82,188.50 223.40,189.95 221.83,191.29 220.12,192.51 218.31,193.61 216.40,194.62 214.43,195.53 212.41,196.35 210.37,197.11 208.32,197.82 206.30,198.50 204.31,199.16 202.39,199.84 200.53,200.53 198.76,201.28 197.08,202.08 195.50,202.96 194.01,203.94 192.62,205.01 191.32,206.19 190.10,207.49 188.96,208.90 187.88,210.41 186.84,212.03 185.83,213.73 184.83,215.51 183.83,217.35 182.81,219.23 181.76,221.12 180.66,223.00 179.49,224.84 178.25,226.63 176.93,228.33 175.53,229.93 174.03,231.39 172.44,232.70 170.77,233.85 169.01,234.82 167.16,235.60 165.25,236.19 163.28,236.58 161.26,236.78 159.19,236.79 157.11,236.63 155.01,236.31 152.90,235.86 150.80,235.28 148.72,234.62 146.67,233.89 144.65,233.12 142.66,232.33 140.72,231.57 138.81,230.85 136.94,230.19 135.11,229.62 133.30,229.15 131.52,228.81 129.76,228.60 128.00,228.53 126.24,228.60 124.48,228.81 122.70,229.15 120.89,229.62 119.06,230.19 117.19,230.85 115.28,231.57 113.34,232.33 111.35,233.12 109.33,233.89 107.28,234.62 105.20,235.28 103.10,235.86 100.99,236.31 98.89,236.63 96.81,236.79 94.74,236.78 92.72,236.58 90.75,236.19 88.84,235.60 86.99,234.82 85.23,233.85 83.56,232.70 81.97,231.39 80.47,229.93 79.07,228.33 77.75,226.63 76.51,224.84 75.34,223.00 74.24,221.12 73.19,219.23 72.17,217.35 71.17,215.51 70.17,213.73 69.16,212.03 68.12,210.41 67.04,208.90 65.90,207.49 64.68,206.19 63.38,205.01 61.99,203.94 60.50,202.96 58.92,202.08 57.24,201.28 55.47,200.53 53.61,199.84 51.69,199.16 49.70,198.50 47.68,197.82 45.63,197.11 43.59,196.35 41.57,195.53 39.60,194.62 37.69,193.61 35.88,192.51 34.17,191.29 32.60,189.95 31.18,188.50 29.92,186.93 28.83,185.25 27.92,183.47 27.20,181.60 26.65,179.64 26.28,177.61 26.07,175.53 26.02,173.40 26.11,171.25 26.31,169.09 26.60,166.92 26.96,164.77 27.37,162.65 27.80,160.56 28.21,158.51 28.59,156.50 28.92,154.55 29.16,152.64 29.30,150.79 29.33,148.97 29.23,147.20 29.00,145.46 28.62,143.74 28.11,142.04 27.46,140.34 26.69,138.65 25.81,136.94 24.84,135.21 23.80,133.46 22.70,131.68 21.59,129.86 20.48,128.00 19.40,126.10 18.39,124.17 17.46,122.21 16.64,120.21 15.97,118.20 15.45,116.17 15.10,114.14 14.94,112.11 14.99,110.10 15.23,108.12 15.68,106.17 16.33,104.26 17.17,102.41 18.19,100.62 19.37,98.89 20.70,97.23 22.14,95.64 23.69,94.11 25.30,92.64 26.96,91.23 28.64,89.86 30.31,88.53 31.95,87.23 33.53,85.94 35.03,84.65 36.44,83.34 37.75,82.01 38.93,80.64 40.00,79.22 40.94,77.73 41.75,76.18 42.45,74.55 43.05,72.83 43.55,71.04 43.97,69.16 44.34,67.22 44.66,65.20 44.97,63.13 45.29,61.02 45.63,58.89 46.03,56.74 46.49,54.61 47.04,52.51 47.70,50.46 48.48,48.48 49.38,46.59 50.42,44.81 51.61,43.16 52.93,41.64 54.40,40.28 55.99,39.08 57.71,38.04 59.55,37.16 61.48,36.44 63.49,35.88 65.58,35.46 67.71,35.17 69.88,34.99 72.06,34.90 74.24,34.88 76.40,34.92 78.54,34.97 80.63,35.03 82.67,35.05 84.65,35.03 86.57,34.94 88.42,34.76 90.21,34.47 91.94,34.07 93.62,33.53 95.24,32.86 96.83,32.06 98.38,31.13 99.92,30.08 101.45,28.92 102.98,27.66 104.53,26.33 106.09,24.94 107.69,23.53 109.33,22.11 111.01,20.72 112.74,19.39 114.51,18.13 116.33,16.98 118.20,15.97 120.11,15.10 122.05,14.41 124.02,13.90 126.00,13.59 128.00,13.49 130.00,13.59 131.98,13.90 133.95,14.41 135.89,15.10 137.80,15.97 139.67,16.98 141.49,18.13 143.26,19.39 144.99,20.72 146.67,22.11 148.31,23.53 149.91,24.94 151.47,26.33 153.02,27.66 154.55,28.92 156.08,30.08 157.62,31.13 159.17,32.06 160.76,32.86 162.38,33.53 164.06,34.07 165.79,34.47 167.58,34.76 169.43,34.94 171.35,35.03 173.33,35.05 175.37,35.03 177.46,34.97 179.60,34.92 181.76,34.88 183.94,34.90 186.12,34.99 188.29,35.17 190.42,35.46 192.51,35.88 194.52,36.44 196.45,37.16 198.29,38.04 200.01,39.08 201.60,40.28 203.07,41.64 204.39,43.16 205.58,44.81 206.62,46.59 207.52,48.48 208.30,50.46 208.96,52.51 209.51,54.61 209.97,56.74 210.37,58.89 210.71,61.02 211.03,63.13 211.34,65.20 211.66,67.22 212.03,69.16 212.45,71.04 212.95,72.83 213.55,74.55 214.25,76.18 215.06,77.73 216.00,79.22 217.07,80.64 218.25,82.01 219.56,83.34 220.97,84.65 222.47,85.94 224.05,87.23 225.69,88.53 227.36,89.86 229.04,91.23 230.70,92.64 232.31,94.11 233.86,95.64 235.30,97.23 236.63,98.89 237.81,100.62 238.83,102.41 239.67,104.26 240.32,106.17 240.77,108.12 241.01,110.10 241.06,112.11 240.90,114.14 240.55,116.17 240.03,118.20 239.36,120.21 238.54,122.21 237.61,124.17 236.60,126.10" fill="url(#sheen)"/>
|
||||
<polyline points="176.88,81.68 179.21,85.29 181.29,88.98 183.12,92.76 184.69,96.59 186.02,100.47 187.09,104.39 187.91,108.31 188.48,112.24 188.80,116.15 188.89,120.02 188.74,123.85 188.35,127.63 187.75,131.33 186.92,134.94 185.89,138.46 184.66,141.87 183.23,145.16 181.63,148.32 179.85,151.35 177.92,154.22 175.83,156.95 173.61,159.50 171.26,161.90 168.80,164.11 166.23,166.15 163.57,168.01 160.84,169.68 158.04,171.16 155.18,172.46 152.29,173.56 149.36,174.48 146.42,175.20 143.47,175.74 140.53,176.09 137.60,176.26 134.70,176.25 131.84,176.06 129.03,175.70 126.28,175.18 123.59,174.49 120.99,173.65 118.46,172.67 116.03,171.54 113.70,170.28 111.48,168.90 109.36,167.40 107.37,165.79 105.50,164.08 103.76,162.27 102.15,160.39 100.68,158.43 99.34,156.41 98.15,154.34 97.09,152.22 96.18,150.06 95.41,147.88 94.78,145.67 94.30,143.46 93.95,141.25 93.75,139.04 93.68,136.85 93.74,134.69 93.94,132.56 94.26,130.46 94.70,128.42 95.27,126.42 95.94,124.49 96.73,122.63 97.62,120.83 98.60,119.11 99.68,117.48 100.84,115.93 102.08,114.47 103.40,113.11 104.77,111.84 106.21,110.68 107.70,109.61 109.24,108.65 110.81,107.80 112.41,107.05 114.04,106.41 115.69,105.88 117.35,105.46 119.01,105.14 120.67,104.92 122.32,104.81 123.96,104.80 125.57,104.89 127.16,105.08 128.72,105.36 130.24,105.73 131.72,106.19 133.15,106.73 134.53,107.35 135.85,108.05 137.11,108.82 138.32,109.65 139.45,110.55 140.52,111.51 141.51,112.51 142.43,113.57 143.27,114.67 144.04,115.80 144.72,116.96 145.33,118.16 145.86,119.37 146.31,120.60 146.67,121.84 146.96,123.09 147.17,124.33 147.29,125.58 147.35,126.81 147.32,128.04 147.22,129.24 147.05,130.42 146.81,131.58 146.51,132.71 146.14,133.81 145.70,134.86 145.21,135.88 144.66,136.86 144.07,137.79 143.42,138.67 142.73,139.50 141.99,140.27 141.22,141.00 140.42,141.66 139.58,142.27 138.72,142.82 137.84,143.31 136.93,143.75 136.02,144.12 135.09,144.43 134.16,144.68 133.22,144.87 132.28,145.00 131.35,145.07 130.43,145.08 129.52,145.04 128.62,144.95 127.74,144.80 126.88,144.59 126.04,144.34 125.23,144.05 124.45,143.70 123.69,143.32 122.98,142.89 122.29,142.42 121.65,141.92 121.04,141.39 120.47,140.83 119.95,140.24 119.47,139.62 119.03,138.99 118.63,138.33 118.28,137.66 117.98,136.98 117.72,136.29 117.51,135.59 117.34,134.89 117.21,134.18 117.13,133.48 117.10,132.79 117.10,132.09 117.15,131.41 117.24,130.74 117.37,130.09 117.54,129.45 117.74,128.83 117.98,128.23 118.25,127.65 118.55,127.10 118.89,126.57 119.25,126.07 119.63,125.60 120.04,125.15 120.48,124.74 120.93,124.36 121.39,124.01 121.88,123.70 122.37,123.41 122.88,123.17 123.40,122.95 123.92,122.77 124.44,122.62 124.97,122.51 125.50,122.43 126.03,122.39 126.55,122.37 127.06,122.39 127.57,122.44 128.07,122.52 128.56,122.63 129.03,122.77 129.49,122.93 129.93,123.12 130.36,123.33 130.77,123.57 131.16,123.83 131.52,124.11 131.87,124.41 132.19,124.72 132.49,125.05 132.77,125.40 133.02,125.75 133.25,126.12 133.45,126.49 133.62,126.88 133.77,127.27 133.90,127.66 134.00,128.06 134.07,128.45 134.12,128.85 134.14,129.24 134.14,129.63 134.12,130.02 134.07,130.40 134.00,130.77 133.91,131.13 133.80,131.48" fill="none" stroke="#FFFFFF" stroke-width="14.08" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<circle cx="128.0" cy="130.56" r="16.64" fill="url(#pearl)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 13 KiB |
24
install.sh
Executable file
24
install.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
# Build Nacre from this checkout's last commit as an Arch package and install it with pacman, with every dependency.
|
||||
# ./install.sh build and install (or update)
|
||||
# ./install.sh --uninstall remove the package; your data in ~/.config and ~/.local/share stays
|
||||
# The build runs in a temporary folder that is deleted at the end, and so is target/ (cargo's old build output): only
|
||||
# the code stays here.
|
||||
set -euo pipefail
|
||||
root=$(cd "$(dirname "$0")" && pwd)
|
||||
case "${1:-}" in
|
||||
--uninstall) exec sudo pacman -Rs nacre ;;
|
||||
"") ;;
|
||||
*) sed -n '2,6s/^# \{0,1\}//p' "$0"; exit 2 ;;
|
||||
esac
|
||||
command -v makepkg >/dev/null || { echo "This installer needs Arch Linux (makepkg, base-devel)." >&2; exit 1; }
|
||||
[ "$(id -u)" != 0 ] || { echo "Run it as your user; it asks for your password when it needs it." >&2; exit 1; }
|
||||
[ -z "$(git -C "$root" status --porcelain --untracked-files=no)" ] || echo "Note: changes that aren't committed are left out."
|
||||
work=$(mktemp -d "${XDG_CACHE_HOME:-$HOME/.cache}/nacre-build.XXXXXX")
|
||||
trap 'rm -rf "$work"' EXIT
|
||||
export NACRE_SRC="$root" BUILDDIR="$work/build" SRCDEST="$work" PKGDEST="$work" LOGDEST="$work"
|
||||
cp "$root/packaging/arch/PKGBUILD" "$work/"
|
||||
cd "$work"
|
||||
makepkg -si --noconfirm --needed
|
||||
[ ! -f "$root/target/CACHEDIR.TAG" ] || rm -rf "$root/target"
|
||||
echo "Installed. Start it with: nacre"
|
||||
40
packaging/arch/PKGBUILD
Normal file
40
packaging/arch/PKGBUILD
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# Arch package of Nacre, built from the last commit of this checkout. Use ../../install.sh, or makepkg -si here.
|
||||
pkgname=nacre
|
||||
pkgver=0.4.0
|
||||
pkgrel=1
|
||||
pkgdesc="A web browser built on WebKitGTK"
|
||||
arch=(x86_64)
|
||||
url="https://archlinux.tail7c4f5e.ts.net/git/astar76/Nacre"
|
||||
license=(MPL-2.0)
|
||||
depends=(webkitgtk-6.0 gtk4 gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav dbus pam glibc libgcc libepoxy libsoup3 gstreamer hicolor-icon-theme xdg-utils)
|
||||
makedepends=(cargo git pkgconf)
|
||||
optdepends=('libnotify: desktop notifications'
|
||||
'xdg-desktop-portal: file pickers'
|
||||
'gnome-keyring: keeps the cookie key'
|
||||
'gst-plugin-pipewire: sound through PipeWire'
|
||||
'cava: music bars'
|
||||
'tor: Tor windows')
|
||||
options=(!lto !debug)
|
||||
# install.sh sets NACRE_SRC because it runs a copy of this file (makepkg rewrites pkgver in place).
|
||||
source=("nacre::git+file://${NACRE_SRC:-$(git -C "${startdir:-.}" rev-parse --show-toplevel)}")
|
||||
sha256sums=(SKIP)
|
||||
|
||||
pkgver() {
|
||||
cd nacre
|
||||
printf '%s.r%s.g%s' "$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd nacre
|
||||
export CARGO_TARGET_DIR="$srcdir/target"
|
||||
nice cargo build --release --locked -j "${NACRE_JOBS:-2}"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd nacre
|
||||
install -Dm755 "$srcdir/target/release/nacre" "$pkgdir/usr/bin/nacre"
|
||||
install -Dm755 "$srcdir/target/release/libnacre_webext.so" "$pkgdir/usr/lib/nacre/libnacre_webext.so"
|
||||
install -Dm644 -t "$pkgdir/usr/share/nacre/filters" assets/filters/*.txt
|
||||
install -Dm644 assets/dev.nacre.Nacre.desktop "$pkgdir/usr/share/applications/dev.nacre.Nacre.desktop"
|
||||
install -Dm644 assets/dev.nacre.Nacre.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/dev.nacre.Nacre.svg"
|
||||
}
|
||||
Loading…
Reference in a new issue